Multiple Choice
What will be displayed after the following statements are executed?
int x = 65;
Int y = 55;
If (x >= y)
{
Int ans = x + y;
}
System.out.println(ans) ;
A) 10
B) 120
C) 100
D) The code contains an error and will not compile.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: What will be the value of discountRate
Q13: When testing for character values, the switch
Q32: Which of the following expressions will generate
Q33: In a switch statement, if two different
Q40: What will be displayed after the following
Q40: Java requires that the boolean expression being
Q42: In an if-else statement, if the boolean
Q44: Which of the following expressions determines whether
Q48: If the expression on the left side
Q56: All it takes for an AND expression