Question: Determine which option below is correct boolean a, b: if(a) System.out.println (A): else if (a && b) System.out.println( A && B) else if !b) System.out.println(



Determine which option below is correct boolean a, b: if(a) System.out.println ("A"): else if (a && b) System.out.println( "A && B") else if !b) System.out.println( "notB") else System.out.println( "ELSE" O If a is false and b is true then the output is "ELSE If a is false and b is false then the output is "ELSE If a is true and b is false then the output is "notB If a is true and b is true then the output is "A && B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
