is memory to the abstract class allocated ..or objects not
instantiated

Answer Posted / garima

for abstract class in java can not be directly instantiated
with new operator Because abstract class is not fully
defined.ie,it's meaningless to implement incomplete class
and Since "classname var =new classname();" is responsible
for allocating the memory ,hence there will be no memory or
object will be instantiated for abstract class.
But we can make reference to abstract class.
example Box b1;

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does split work in java?

535


What is the byte range?

582


How can we find the actual size of an object on the heap?

804


Is arraylist a class in java?

536


define the terminology association.

619






How do generics work?

518


What is serialversionuid?

561


What is a super method?

534


What java ide should I use?

567


What is the use of string and stringbuffer?

553


Define how can we find the actual size of an object on the heap?

659


Do loops java?

554


What is difference between iterator access and index access?

648


What is tcp ip in java?

590


What comes to mind when someone mentions a shallow copy in java?

659