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

What is lambda expression in java?

543


Explain the differences between static and dynamic variables?

590


Can vector have duplicates in java?

509


What do bitwise operators do?

529


Which methods cannot be overridden in java?

541






Can an interface implement another interface?

577


When can we say that threads are not lightweight process in java?

596


What is the maximum size of array in java?

518


Explain what access modifiers can be used for methods?

572


What is substring 1 in java?

591


Can you use this() and super() both in a constructor?

522


Does java allow default arguments?

592


How do you break a loop?

567


Why scanner is used in java?

552


What is the purpose of stub and skeleton?

549