Discussion :: JAVA MCQs
-
What is the output of this program?class mainclass {public static void main(String args[]){char a = 'A';a++;System.out.print((int)a);}}
Answer : Option A
Explanation :
ASCII value of 'A' is 65, on using ++ operator character value increments by one.
Be The First To Comment