/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
- 7 votes240 views2 answers
- 0 vote313 views1 answer
- 0 vote251 views1 answer
- 0 vote253 views1 answer
- 0 vote242 views2 answers
- 0 vote267 views1 answer
- 0 vote291 views1 answer
- 16 votes262 views3 answers
- 2 votes294 views1 answer
- 6 votes253 views2 answers