Question: What will be printed when the following statements are executed? x = 5; System.out.print(1 ); if (x == 6) System.out.print(2); else System.out.print(3); System.out.print(4);

What will be printed when the following statements are executed? x = 5; System.out.print("1 "); if (x == 6) System.out.print("2"); else System.out.print("3"); System.out.print("4");
Step by Step Solution
There are 3 Steps involved in it
When the following statements are executed x 5 Systemoutprint1 if x 6 Systemoutprint2 else ... View full answer
Get step-by-step solutions from verified subject matter experts
