Home / MCQ Bank / Computer
Computer Inheritence Difficulty: Medium

What is the result of the following code snippet? class Parent { static void display() { System.out.println("Parent"); } } class Child extends Parent { public static void main(String[] args) { Child obj = new Child(); obj.display(); } }

Select the correct option to test your answer:

More Computer Questions

Which of the following is the predefined shape elements that can be used by developers? In infix to postfix conversion algorithm, the operators are associated from? Making the push operation costly, select the code snippet which implements the pop operation. The result of an operation between unaligned Series will have the . . . . . . . . of the indexes involved. Properties that describe the characteristics of entities are called: