Question 34 / 35:  output ?
class AA{

CC cc = new CC();

int x = 5;

;

;

;

AA(){

System.out.println("Hello");

};

}

public class Program7 extends AA{

AA ob=new AA();

int n = 1;

Program7(){

n = 2;

System.out.println("hello 1");

}

public static void main(String... args){

System.out.println("Hello 2");

new Program7();

}

}

class CC{

CC(){

System.out.println("its wow");

}

}

A  Hello 2 its wow Hello its wow hello 1
B  Hello 2 its wow Hello Hello hello 1
C  Compilation fails
D  Hello 2 its wow Hello its wow Hello hello 1
<< First < Previous Next > Last >>
Quiz Home Page
https://www.jobilize.com/ocjp-1z0-803-oca1-7-mock-exam-quiz-by-pankaj-kalra

OCA(1z0-803_OCA1.7)MockExamPI

Author:

Access: Public Instant Grading

Ask
Michael Sag
Start Exam
Anindyo Mukhopadhyay
Start Quiz
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-quiz-by-pankaj-kalra" 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>