Examveda
Examveda

What will be the output of the following Java code?
class char_increment 
{
    public static void main(String args[]) 
    {
        char c1 = 'D';
        char c2 = 84;
        c2++;
        c1++;
        System.out.println(c1 + " "  + c2);
    } 
}

A. E U

B. U E

C. V E

D. U F

Answer: Option A


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

Join The Discussion

Related Questions on Data Types and Variables