/Java/Predict the output of the given code: void method2(char c) { System.out.println( (int) c); } What will be the output of the given code snippet if i) if 'x' is passed to c i) if ‘0’ is passed to c
Predict the output of the given code: void method2(char c) { System.out.println( (int) c); } What will be the output of the given code snippet if i) if 'x' is passed to c i) if ‘0’ is passed to c
Predict the output of the given code: void method2(char c) { System.out.println( (int) c); } What will be the output of the given code snippet if i) if 'x' is passed to c i) if ‘0’ is passed to c
0
- 1 vote178 views2 answers
- 0 vote158 views1 answer
- 2 votes153 views1 answer
- 0 vote197 views1 answer
- 2 votes170 views1 answer
- 1 vote150 views1 answer
- 0 vote173 views1 answer
- 6 votes133 views3 answers
- 0 vote153 views1 answer
- 2 votes175 views1 answer