/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 vote311 views1 answer
- 0 vote291 views1 answer
- 3 votes295 views1 answer
- 22 votes277 views2 answers
- 17 votes215 views7 answers
- 1 vote291 views1 answer
- 0 vote301 views1 answer
- 1 vote291 views1 answer
- 0 vote284 views1 answer
- 7 votes291 views4 answers