A
Q. What will be the output after compiling and running following code?
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. }
2. public static void main(String... args){
3. int x =5;
4. x *= 3 + 7;
5. System.out.println(x);
6. }
7. }
- Correct Answer - Option(B)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.