Consider the following unformatted nested if-else Java code
if-else
if (condition 1) if (condition 2) action 1; else action 2;
My ques
Just my 2 cents for a better visual representation.
Everything inside braces will be completely ignored.
if (false) { if (true) System.out.println("1"); else System.out.println("2"); }