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
How does split work in java?
What is the byte range?
How can we find the actual size of an object on the heap?
Is arraylist a class in java?
define the terminology association.
How do generics work?
What is serialversionuid?
What is a super method?
What java ide should I use?
What is the use of string and stringbuffer?
Define how can we find the actual size of an object on the heap?
Do loops java?
What is difference between iterator access and index access?
What is tcp ip in java?
What comes to mind when someone mentions a shallow copy in java?