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
How infinite loop is declared?
What is the use of object and class classes?
Why does my function print none?
what is synchronization and why is it important? : Java thread
Is stringwriter thread safe?
Difference between this() and super() in java ?
What are the object and class classes used for?
What environment variables do I need to set on my machine in order to be able to run java programs?
What is defined as false sharing in the context of multithreading?
What do you mean by checked exceptions?
When will we prefer to use set and list in java and why?
What is parsing a string?
What is broken and continue statement?
How do you include a string in java?
What is the use of toarray () in java?