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
When is finally block not called?
Explain the pointers in Java?
Should a main method be compulsorily declared in all java classes?
What is java util?
What is final access modifier in java?
Is ++ operator thread-safe in java?
Is it possible to write a regular expression to check if string is a number?
What is high level language in computer?
Why is stringbuffer called mutable?
What are variable arguments or varargs?
Can you explain inner class.
What is ‘is-a ‘ relationship in java?
Is empty set an element of empty set?
What are the different ways of creating thread?
Can you call a method in a method?