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
Can we have any code between try and finally blocks?
How strings are created in java?
What are the basics of core java?
What are the four pillars of java?
What are different exception types exceptions available in java ?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What are heterogeneous objects?
What is an interface in java? Explain
What is the difference between overriding and overloading in OOPS.
Is class is a data type?
What are streams in java 8?
What is the difference between the file and randomaccessfile classes?
Explain about version control?
Can private class be extended java?
What is the difference between arraylist and hashset in java?