/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 vote122 views1 answer
- 1 vote117 views1 answer
- 2 votes113 views1 answer
- 0 vote115 views1 answer
- 1 vote115 views2 answers
- 1 vote121 views1 answer
- 3 votes120 views1 answer
- 8 votes112 views2 answers
- 0 vote151 views1 answer
- 0 vote120 views1 answer