/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 vote204 views1 answer
- 3 votes194 views1 answer
- 89 votes263 views5 answers
- 0 vote191 views1 answer
- 5 votes170 views1 answer
- 1 vote184 views1 answer
- 0 vote199 views1 answer
- 0 vote204 views1 answer
- 0 vote231 views1 answer
- 1 vote193 views1 answer