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’s the difference between callable and runnable?
Is 0 true or false?
Which is the class in java?
What is the map interface in java programming?
How to sort an unsorted array in java?
Explain the use of volatile field modifier?
What is collection sort in java?
What is meant by final class?
In a container there are 5 components. I want to display all the component names, how will you do that?
Differentiate between stringbuffer and string?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is callable java?
What is a variable analysis?
How many bits is a word?
What do you mean by compiler?