Card 9 / 32: class Titanic { public static void main(String[] args) { Boolean b1 = true; boolean b2 = false; boolean b3 = true; if((b1 & b2) | (b2 & b3) & b3) System.out.print("alpha "); if((b1 = false) | (b1 & b3) | (b1 | b2)) System.out.print("beta "); } } What is the result? Correct Answer
A)
alpha
B)
beta
C)
alpha beta
D)
No O/P produced
E)
compilation fails
Answer:
D) No O/P produced
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|