Question: int y if (y 2) What will be displayed after the following statements are executed? 10; 10) { int X - 30; X += Y;
int y if (y 2) What will be displayed after the following statements are executed? 10; 10) { int X - 30; X += Y; System.out.println(x); } a. 40 C. 20 b. 30 d. The code contains an error and will not compile
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
