Can you make an instance of an abstract class?
Answers were Sorted based on User's Feedback
Answer / srinu
No. The abstract class can not be instantiated. No use
abstract class can be instantiated. I tell u sample Example
HttpServlet class contain purley undefined methods but it
declared as a Abstract class still no use can be instantited
for HttpServlet
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / rajasri
No, An abstract class can not be instantiated but we can
create reference for that class
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / hemant chouhan
you cant create the object or instance of abstract class
but you can create the reference of that class .actually
the abstract is a incomplete class since you provide the
implementation in the subcalss of abstrace so jvm prevent
if any one create the instance of that class.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anitha
Directly we con't Instantiate an Abstract Class.but through
an implementation class we can do it.
Is This Answer Correct ? | 1 Yes | 1 No |
What is parsing a string?
How do you insert a line break?
What is the difference between jsp and servlet?
How to convert String into primitive datatype.
what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!
7 Answers emc2, Kumaran Systems,
What is a class variable?
What is internal variable?
Can we split string with in java?
What is vector capacity in java?
What is difference overloading and overriding?
What is the loop in java?
how to create constants in java?