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 meant by class loader? How many types are there?
Difference between current previous versions of Java?
What best practices should you follow while writing multithreaded code in java?
What is a for loop in java?
What does %d do in java?
Can an integer be a string?
What is the java idl system?
What is finalize()? Is finalize() similar to a destructor?
what is the significance of listiterator in java?
Give some features of interface?
What is the relationship difference the canvas class and the graphics class?
How many bits is a char?
What is floor in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What are the differences between path and classpath variables?