Correct Answer: class Child extends Parent
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Core Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Core Java MCQ Questions
What is the correct syntax for importing java.util.Scanner?
If we want a class not to be overridden,the class must be done as
To document an API, which tool do you use?
Which of these are advantages of encapsulation in Java?
What is the most efficient way to concatenate a large number of strings in Java?
HTML based Java Documentary help can be accessed using.. ?
ConcurrentModificationException extends .......
What is super class of all classes in Java?
A Guarded Block is a concurrency idiom in which:
What will be the output of this code? class Main { static abstract class Base { protected Base() { init(); } abstract void init(); } static class Child extends Base { private final int value; public Child() { value = 5; } @Override public void init() { System.out.println("value = " + value); } } public static void main(String[] args) { Child c = new Child(); } }