/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 votes227 views2 answers
- 58 votes212 views6 answers
- 1 vote252 views1 answer
- 4 votes220 views4 answers
- 6 votes221 views3 answers
- 0 vote236 views1 answer
- 0 vote226 views1 answer
- 0 vote220 views1 answer
- 2 votes219 views1 answer
- 2 votes188 views3 answers