V

Vinay • 28.75K Points
Instructor II

Q. What will be the output of the following Java code?

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
  • Correct Answer - Option(D)
  • Views: 13
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics