Question 7 / 28:  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
<< First < Previous Flashcard Next > Last >>
Quiz Home Page
https://www.jobilize.com/prateek-ashtikar-scjp-online-exam-310-065

SCJP Online Exam 310-065

Author:

Access: Public Instant Grading

Ask
Royalle Moore
Start Quiz
Lakeima Roberts
Start Quiz
Marion Cabalfin
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/prateek-ashtikar-scjp-online-exam-310-065" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>