Is a class subclass of itself?



Is a class subclass of itself?..

Answer / Santosh Kumar Pradhan

No, by default, a class is not a subclass of itself in Java. To make a class a subclass of another, you should extend it using the extends keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to display arraylist values in java?

1 Answers  


what is real-time example of runtime polymorphism and compile time polymorphism

4 Answers   SLK Group,


Name four container classes.

1 Answers  


How many bytes is 255 characters?

1 Answers  


What are the data types supported by java? What is autoboxing and unboxing?

1 Answers  


What is not object oriented programming?

1 Answers  


Is there any case when finally will not be executed?

1 Answers  


What is the difference between stream and buffer?

1 Answers  


What languages are pass by reference?

1 Answers  


Why cant we define System.out.println() inside a class directly?

5 Answers  


What do you mean by chromounits in java8?

1 Answers  


When can we say that threads are not lightweight process in java?

1 Answers  


Categories