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


Please Help Members By Posting Answers For Below Questions

What is class variable java?

574


How can you read content from file in java?

591


Can we override the static method?

562


What is a variable analysis?

628


What are scriptlets?

591






Is logger a singleton?

511


What are synchronized methods ?

604


What does the “final” keyword mean in front of a variable? A method? A class?

540


How to print an arraylist in java?

489


What is difference between jdk,jre and jvm?

552


Give a practical example of singleton class usage?

577


What exactly is methodology?

470


What is a local, member and a class variable?

566


Explain the difference between protected and default access.

509


describe synchronization in respect to multithreading? : Java thread

491