What is an abstract class?

Answer Posted / pranab dutta

An Abstract class serves as a template, so it must be
extended /subclassed. It contains a static data. It means a
class that is abstract may not be instantiated and its
constructor can?t be called. A class may be declared
abstract even if it has no abstract methods that prevents
it from being instantiated.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of using java.lang.class class?

521


What is string in java?

556


What is the collections api?

566


What is lambda expression in java?

536


What is :: operator in java?

503






Explain the importance of import keyword in java?

520


How does a cookie work in Servlets?

340


What is java full form?

521


What is meant by data hiding/encapsulation?

569


What is json parser in java?

611


Explain about static nested classes in java?

602


How do you decide when to use arraylist and linkedlist?

530


Why arraylist is used in java?

547


What is javac_g?

588


Discuss different types of errors that generally occur while programming.

572