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?
What is the synonym of procedure?
How variables are stored in memory?
What methods are used in Servlet?Applet communication?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Can we create more than one object singleton class?
Can a class have an interface?
What is math in java?
What is autoboxing and unboxing?
Can you have two constructors in java?
Why is a singleton bad?
What do you mean by of string::valueof expression in java 8?
What is Hierarchy of exception?
Why 1 is not a prime number?
What is a dynamic array in java?