S
Q. What is the result of the following code snippet? class Parent { void display() { System.out.println("Parent"); } } class Child extends Parent { public static void main(String[] args) { Child obj = new Child(); obj.display(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. What is a lambda expression in Java 8?
Q. Interfaces helps in which type of inheritance
Q. If we add Enum constants to a TreeSet, what sort order will it use?
Q. How are you able to sort given HashMap on basis of values
Q. How to compile java code in command prompt?
Q. In an Iterator what implementation will traverse a collection in each direction?
Q. What is the output of Logical AND (&) operation if one of the inputs/operands is false?
Discusssion
Login to discuss.