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 javap?

600


How is string stored in java?

548


How many ways can an argument be passed to a subroutine and explain them?

562


Differentiate between class and structure.

618


What is the SimpleTimeZone class?

1784






What is main in java?

498


In the below example, what will be the output?

578


How big is a 32 bit integer?

515


If we don’t want some of the fields not to serialize how to do that?

552


Are primitives objects?

550


How do you detect memory leaks?

570


What steps are taken when the OS shifts from one-thread execution to another?

887


What is class forname?

530


What is meant by call by reference?

494


What is early binding and late binding in java?

587