/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
- 14 votes121 views2 answers
- 6 votes150 views1 answer
- 1 vote129 views1 answer
- 56 votes126 views6 answers
- 0 vote121 views1 answer
- 2 votes134 views1 answer
- 1 vote148 views1 answer
- 0 vote132 views2 answers
- 6 votes128 views1 answer
- 0 vote132 views1 answer