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
πŸ’¬ Discuss
βœ… Correct Answer: (D) 27 9

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
93%
Success Rate