Question 26 / 35:  output ?
class Bird{

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

public Bird(){

System.out.println("b2 ");

}

}

class Raptor extends Bird{

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

public Raptor(){

System.out.println("r2 ");

}

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

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

}

class Hawk extends Raptor{

public static void main(String[] args) {

System.out.println("pre ");

new Hawk();

System.out.println("hawk");

}

}

A  pre b1 b2 r3 r2 hawk
B  r1 r4 pre b1 b2 r3 r2 hawk
C  r1 r4 pre b2 b1 r2 r3 hawk
D  pre r1 r4 b2 b1 r2 r3 hawk
<< First < Previous Next > Last >>
Quiz Home Page
https://www.jobilize.com/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg

OCA(1z0-803_OCA1.7)MockExamPII

Author:

Access: Public Instant Grading

Ask
Madison Christian
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg" 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>