Examveda
Examveda

What will be the output of the following Java code?
class operators 
{
    public static void main(String args[]) 
    {    
         int x = 8;
         System.out.println(++x * 3 + " " + x);
    } 
}

A. 24 8

B. 24 9

C. 27 8

D. 27 9

Answer: Option D


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators