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
What is the function of http?
What do you understand by access specifiers in Java?
What are the advantages of functions?
Is 0 a prime number?
How do you use substring in java?
Where are register variables stored?
Why java is used everywhere?
How can we make a class singleton?
What is string [] args?
What is the inheritance?
How do generics work?
Explain about interthread communication and how it takes place in java?
Why are getters and setters used?
Why does java does not support multiple inheritance? Explain
What are alternatives to java serialization?