why abstract class does not have object creation

Answer Posted / sushila sonare

if we create an object for abstract class, so through object
reference we can use all method. But in abstract class some
method is abstract, i.e. they don't have body of the method.
At the time of method calling we are getting error. Compiler
don't know what to do. To avoiding this problem its
restricted to create an object

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How infinite loop is declared?

527


What is the use of object and class classes?

563


Why does my function print none?

516


what is synchronization and why is it important? : Java thread

584


Is stringwriter thread safe?

546






Difference between this() and super() in java ?

609


What are the object and class classes used for?

550


What environment variables do I need to set on my machine in order to be able to run java programs?

599


What is defined as false sharing in the context of multithreading?

500


What do you mean by checked exceptions?

529


When will we prefer to use set and list in java and why?

543


What is parsing a string?

586


What is broken and continue statement?

526


How do you include a string in java?

519


What is the use of toarray () in java?

533