is memory to the abstract class allocated ..or objects not
instantiated
Answer Posted / amit jayaswal
Actually the fact is this that abstract class is used to achieve polymorphism (abstraction 0-100) & for code sharing among closely related concrete classes, there are no need to create and object of abstract class direct using "new" operator, because there are some abstract method & nothing to be allocated for abstract method they are here only for abstraction and there are some another non abstract method (for code sharing) and attribute inside abstract class and memory will be allocated for those members on the basis of their belonging concrete class. while we invoke constructor of their concrete class then the constructor of abstract class will be invoke implicitly.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does java linked list allow duplicates?
Why singleton is not thread safe?
What does it mean that a class or member is final?
What is module in project?
What is bool mean?
What is jar?
Why is java so popular?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is boolean used for?
how we can make a read-only class in java?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is the type of lambda expression?
Does java list allow null?
Is double bigger than float?