Multiple Choice
What will be displayed when the following code is executed?
Int y = 10;
If (y == 10
{
Int x = 30;
X += y;
System.out.println(x) ;
}
A) 40
B) 30
C) 20
D) The code contains an error and will not compile.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: If str1 and str2 are both String
Q11: The _ statement is used to create
Q13: When testing for character values, the switch
Q16: Which of the following strings could be
Q20: When a character is stored in memory,
Q33: In a switch statement, if two different
Q40: An important style rule you should adopt
Q40: What would be the value of discountRate
Q43: The if-else statement will execute one group
Q44: Which of the following expressions will determine