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
Difference between throw and throws?
What do you mean by multithreaded program?
What does \ mean in regex?
Is array an object in java?
what is the difference between process and thread? : Java thread
Name container classes in java programming?
What are keywords give examples?
What is floor in java?
What are the elements of java?
What do you mean by constant time complexity?
Define how does a try statement determine which catch clause should be used to handle an exception?
What string is utf8?
How to change the priority of thread or how to set the priority of thread?
Is a char always 1 byte?
What is difference between array and vector?