Solved

What Will Be Displayed After the Following Statements Are Executed

Question 41

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions