/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
- 2 votes145 views3 answers
- 1 vote151 views1 answer
- 1 vote140 views1 answer
- 0 vote142 views1 answer
- 0 vote129 views1 answer
- 1 vote139 views1 answer
- 0 vote136 views1 answer
- 1 vote161 views1 answer
- 0 vote163 views1 answer
- 0 vote150 views1 answer