Solved

What Will Be Displayed After the Following Code Has Been

Question 13

Multiple Choice

What will be displayed after the following code has been 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