/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
- 1 vote333 views2 answers
- 9 votes359 views1 answer
- 1 vote354 views1 answer
- 1 vote366 views1 answer
- 0 vote449 views1 answer
- 0 vote326 views1 answer
- 0 vote370 views1 answer
- 0 vote372 views1 answer
- 5 votes349 views1 answer
- 3 votes356 views1 answer