/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 vote234 views1 answer
- 1 vote197 views1 answer
- 0 vote222 views1 answer
- 28 votes204 views6 answers
- 31 votes194 views5 answers
- 0 vote287 views1 answer
- 0 vote193 views1 answer
- -1 vote229 views3 answers
- 2 votes204 views2 answers
- 0 vote247 views1 answer