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
What is another word for methodology?
What are implicit objects in java?
What is Classloader in Java?
What is the difference between stored procedure & function?
Can a string be null?
What is backdrop?
Why main method is static in java?
Why do we need hashset in java?
Give few examples of final classes defined in Java API?
What is hasnext in java?
How do you sort arraylist in descending order?
What does singleton class mean?
What is difference between path and classpath in java?
Which programming language is most secure?
Can a static class have a constructor java?