Q. What is the output of the Java code snippet?
Code:
int a=5, b=6;
if(a++ == --b)
{
System.out.println("5=5");
}
else
{
System.out.println("NONE");
}
β
Correct Answer: (B)
5=5