Explain the use of sublass in a java program?



Explain the use of sublass in a java program?..

Answer / Abhishek Kushwaha

A Subclass (or derived class) in Java is a class that inherits properties and methods from another class, known as the Superclass (or base class). Subclasses can extend the functionality of their superclasses by adding new instance variables, methods, or overriding existing ones.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the history of java?

1 Answers  


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

1 Answers  


What is default constructors?

1 Answers  


Explain a few methods of overloading best practices in java?

1 Answers  


What is a “stateless” protocol ?

1 Answers  


How multi processing is achieved in JAVA?

5 Answers   BMC,


what are the major differences between jdk1.4 and jdk1.5?

2 Answers   Cap Gemini, Crimson Logic, Infosys, TCS, Tenth Planet,


Explain what is Marker interface?

1 Answers   BirlaSoft,


What is difference between class and object in java?

1 Answers  


What is a Null object?

2 Answers   Wipro,


Is age a discrete variable?

1 Answers  


What is a platform?

1 Answers  


Categories