Single Choice Not Set

QWhat will be the output after compiling and running following code?
1. public class Test{
2.       public static void main(String... args){
3.             int x =5;
4.             x *= 3 + 7;
5.             System.out.println(x);
6.       }
7. }

ID: #2132 Operator in Java 604 views
Question Info
#2132Q ID
Not SetDifficulty
Operator in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 22
  • B 50
  • C 10
  • D Compilation fails with an error at line 4
Correct Answer

Explanation

50

Share This Question

Challenge a friend or share with your study group.