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 |
What is the history of java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is default constructors?
Explain a few methods of overloading best practices in java?
What is a “stateless” protocol ?
How multi processing is achieved in JAVA?
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?
What is difference between class and object in java?
What is a Null object?
Is age a discrete variable?
What is a platform?