Multiple Choice
What will be displayed after the following statements are executed?
int ans = 10;
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
Q40: Java requires that the boolean expression being
Q41: What will be printed when the following
Q42: Which of the following expressions could be
Q43: The if-else statement will execute one group
Q44: Which of the following expressions determines whether
Q46: What will be the value of ans
Q47: A flag may have the values<br>A) defined
Q48: If the expression on the left side
Q49: Which of the following is the not
Q50: What would be the value of bonus