Examveda
Examveda

What will be the output of the following Java program?
class mainclass {
    public static void main(String args[]) 
    {
        char a = 'A';
        a++;
  System.out.print((int)a);
    } 
}

A. 66

B. 67

C. 65

D. 64

Answer: Option A


This Question Belongs to Java Program >> Data Types And Variables

Join The Discussion

Related Questions on Data Types and Variables