Asked on 17 Dec 2017

12. What will the following print ? public class Test public static void main (String[] args) boolean bl = true; boolean b2 = false; boolean b3 = true; if ((bl && b2) || (b2 && b3) || b2) System.out.print("ok"); if ((bl && b2) || (b2 && b3) 11 (bl || b2)) System.out.println("dokey"); (A) No output is produced (B) ok (C) dokey (D) Compile-time error (E) ok dokey

Answered on 17 Dec 2017

Unlock this answer

Get 1 free homework help answers
Access 3.7 million verified answers.
Get access
Already have an account? Log in