Examveda

What will be the output of the following Java code?
class asciicodes {
    public static void main(String args[]) 
    {
        char var1 = 'A';
  char var2 = 'a';
  System.out.println((int)var1 + " " + (int)var2);
    } 
}

A. 162

B. 65 97

C. 67 95

D. 66 98

Answer: Option B


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

Join The Discussion

Related Questions on Data Types and Variables