What is the output of the given program? public class Test71 { public static void main(String[] args) { System.out.println(new Child().toString()); } } class Parent { public String toString() { return this.getClass().getName(); } } class Child extends Parent {}
Correct Answer: Child
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions