/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 vote183 views2 answers
- 4 votes132 views2 answers
- 5 votes181 views1 answer
- 1 vote177 views2 answers
- 0 vote173 views1 answer
- 10 votes178 views5 answers
- 0 vote184 views1 answer
- 0 vote189 views1 answer
- 3 votes178 views1 answer
- 1 vote204 views1 answer