/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
- 3 votes287 views4 answers
- 1 vote248 views1 answer
- 32 votes281 views10 answers
- 1 vote293 views1 answer
- 0 vote366 views3 answers
- 1 vote280 views1 answer
- 0 vote238 views1 answer
- 2 votes298 views2 answers
- 9 votes281 views2 answers
- 0 vote348 views1 answer