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 boolean example?
How many types of methods are there in java?
Why is java so important?
How many bits is a boolean?
What is local class in java?
Can we have more than one package statement in source file ?
What is static variable with example?
Detail discussions on JVM, memory management and garbage collector.
Why does my function print none?
Does anyone still use java?
How do you use compareto method?
What is nested top-level class?
What are the ways to instantiate the class class?
Why super is first line in java?
What is the latest version of java?