/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
- 0 vote148 views2 answers
- -1 vote191 views2 answers
- 0 vote278 views1 answer
- 6 votes140 views5 answers
- 1 vote167 views1 answer
- 0 vote141 views1 answer
- 7 votes153 views3 answers
- 5 votes137 views2 answers
- 0 vote182 views1 answer
- 1 vote165 views1 answer