Exam Permalink:
https://www.jobilize.com/java-certification-questions
Question Permalink:
https://www.jobilize.com/order-of-constructor-calls-of-java-derived-classes
Question 69 / 297:  What is the output of compiling and running the following program?
class Category {

Category() {

System.out.print("Category_");

}

}

class SubCategory extends Category {

SubCategory() {

System.out.print("SubCategory_");

}

}

class SubSubCategory extends SubCategory {

SubSubCategory() {

System.out.print("SubSubCategory_");

}

}

public class Tester {

public static void main(String[] args) {

new SubSubCategory();

}

}

A  SubSubCategory_SubCategory_Category_
B  SubSubCategory_
C  Category_SubCategory_SubSubCategory_
<< First < Previous Next > Last >>
Exam Home Page
https://www.jobilize.com/java-certification-questions

Oracle Certified Professional Java Programmer

Author:

Access: Public Instant Grading

Ask
Courntey Hub
Start Test
Anonymous User
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" 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>