R
Q. What is the output of the below Java code snippet?
Code:
char ch = 'A';//ASCII 65
int a = ch + 1;
ch = (char)a;
System.out.println(ch);
int a = ch + 1;
ch = (char)a;
System.out.println(ch);
- Correct Answer - Option(C)
- Views: 155
- Filed under category JAVA
Discusssion
Login to discuss.