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
What is lambda expression in java?
Explain the differences between static and dynamic variables?
Can vector have duplicates in java?
What do bitwise operators do?
Which methods cannot be overridden in java?
Can an interface implement another interface?
When can we say that threads are not lightweight process in java?
What is the maximum size of array in java?
Explain what access modifiers can be used for methods?
What is substring 1 in java?
Can you use this() and super() both in a constructor?
Does java allow default arguments?
How do you break a loop?
Why scanner is used in java?
What is the purpose of stub and skeleton?