heres a question which got me confused about evaluation order in System.out.println.
What is the output of the following code?
public class BooBoo {
public static boolean boo2;
public static void main(
String[ ] args)
{
boolean boo1 = true;
boolean boo3 = new BooBoo() instanceof Object;
if (
boo1 & boo2 | boo2 & boo3 | boo2 )
System.out.println("Donkey");
if (
boo3 & boo2 | boo2 & boo1 | boo2 | boo1)
System.out.println("Monkey");
}
}
the answer is Monkey..
plzzz somebody explain it....