A

Admin • 833K Points
Coach

Q. What is the result of the expression (6 + 3) * 2 in Java?

  • (A) 12
  • (B) 15
  • (C) 18
  • (D) 9
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Java
  • Hashtags:

Explanation by: Admin

In Java, the expression (6 + 3) * 2 follows the order of operations (parentheses, multiplication/division, and addition/subtraction). First, the addition inside the parentheses is performed, resulting in 9. Then, the multiplication is carried out, yielding a final result of 18.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.