/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
- 19 votes356 views5 answers
- 26 votes304 views3 answers
- 1 vote355 views1 answer
- 14 votes332 views4 answers
- 0 vote301 views1 answer
- 4 votes327 views1 answer
- 0 vote329 views1 answer
- 0 vote357 views1 answer
- 0 vote368 views1 answer
- -3 votes386 views2 answers