0

Whats the output of code and why

int x=3; int y=1; if(x==y){ System.out.println("x=" + x); }

17th Jun 2017, 8:04 AM
Sagar Bansal
Sagar Bansal - avatar
3 Answers
+ 15
No output ~_~ because the condition becomes false, or x!=y so the block of code inside if{} doesn't executes...
17th Jun 2017, 8:07 AM
Dev
Dev - avatar
0
NO output.because 3 is not equal to 1
17th Jun 2017, 9:22 AM
Shaju