Can u write constructor in abstract.If yes den when it will
be invoked.
Answer Posted / srinu
yes Abstract class contain constructor. if it will be
invoked the abstract class extending the class .Then that be
invoked.
Ex:
HttpServlet class is abstract class it contain
constructor.it will be invoked the other class extending
HttpServlet it will be invoked.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Why can't we use static class instead of singleton?
Is java a security risk?
Differences between traditional programming language and object oriented programming language?
Explain about instanceof operator in java?
Why can't we make a class private in java?
Is java pass by value or pass by reference?
What is string substring?
In which order the iterator iterates over collection?
What is the use of keywords in java?
What is string value?
What is final variable?
How many bytes is a url?
Explain about fail fast iterators in java?
What is a null point?
What is object class in java?