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
What is a map in java?
What is the purpose of the system class in java?
What is the maximum size of array in java?
What is integers and example?
What is anagram word?
How many bytes is 255 characters?
What is quick sort in java?
What is super keyword explain with example?
Can we increase size of array?
Can we make a constructor final?
What is the technique adopted to create an immutable class?
Explain about map interface in java?
Differentiate between static and non-static methods in java.
Is java a prime method?
What are the advantages of encapsulation in java?