/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 vote181 views1 answer
- 147 votes504 views2 answers
- 1 vote178 views1 answer
- 11 votes169 views2 answers
- 1 vote191 views2 answers
- 1 vote223 views2 answers
- 0 vote192 views1 answer
- 2 votes176 views2 answers
- 1 vote222 views1 answer
- 0 vote189 views1 answer