What is the purpose of abstract class?
Answer / Deepti Kapoor
An abstract class in Java is a class that cannot be instantiated and must be subclassed by other classes. Its primary purpose is to provide a common base for multiple related classes, sharing their properties and behaviors while allowing each derived class to define its own specific implementation of certain methods. Abstract classes can contain both concrete and abstract (i.e., unimplemented) methods, with the intention that derived classes will complete the implementation.
| Is This Answer Correct ? | 0 Yes | 0 No |
How long will it take to learn java?
What is double checked locking in singleton?
Can we extend singleton class in java?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,
What is the default initialized value of a boolean type variable?
Do you know thread pools?
Define packages in java?
What is difference between variable declaration and definition?
What is a method in coding?
Why to give the file name same as the public class name in java?
What is thread synchronization in java?
What is parameter tag and what is its use?