/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 vote179 views1 answer
- 0 vote222 views1 answer
- 0 vote168 views1 answer
- -1 vote177 views1 answer
- 7 votes210 views2 answers
- 1 vote189 views3 answers
- 0 vote178 views1 answer
- 21 votes153 views6 answers
- 1 vote198 views1 answer
- 0 vote180 views2 answers