Question PRG-JAVA-0068
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
char c = 'A';
c += 1;
int i = c + 1;
char d = (char) (c + 2);
System.out.println(c + "" + i + d);
}
}
- A.
6667D
- B.
B66C
- C.
Sign up free to see the answer and a step-by-step explanation.