Home > Java Programming > Inner Classes > Questions and Answers
Q: |
Given below the sample code : class SuperClass { public static void main(String[] args) { new SubClass(); } SuperClass() { System.out.print("Inside SuperClass "); } } class SubClass extends SuperClass { SubClass() { System.out.print("Inside SubClass"); } } What is the output of the following code ? | ||||||||||
|
Comment on this Question | |
Name: | |
|