0
What is the output (the two lines are shown separated by a comma) of the following Java program?
public class Main {
public static void main(String[] args) {
char c = 'a';
c++;
System.out.println(c + 1);
System.out.println((char) (c + 1));
}
}- Ab, c
- Bc, 99
- C99, c
- D99, 99
Correct answer: C