adplus-dvertising
frame-decoration

Question

What is the output of this 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: (a).66

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?