Question 22 / 28:  class Bird {

{ System.out.print("b1 "); }

public Bird() { System.out.print("b2 "); }

}

class Raptor extends Bird {

static { System.out.print("r1 "); }

public Raptor() { System.out.print("r2 "); }

{ System.out.print("r3 "); }

static { System.out.print("r4 "); }

}

class Hawk extends Raptor {

public static void main(String[] args) {

System.out.print("pre ");

new Hawk();

System.out.println("hawk ");

}

}

What is the result?

A  r1 r4 pre b1 b2 r2 r3 hawk
B  r1 r4 pre b1 b2 r3 r2 hawk
C  r1 r4 pre b2 b1 3 r2 hawk
<< 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
Danielle Stephens
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>