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 float in java?
How strings are created in java?
Where pragma is used?
What is stored procedure. How do you create stored procedure ?
What are the fileinputstream and fileoutputstream?
Can java run on google chrome?
What is the difference between a field variable and a local variable?
Explain abstract class in java?
What are the differences between string, stringbuffer and stringbuilder?
Can we call thread start () twice?
How do you remove duplicates from an array in java?
What is difference between char array and string?
What is data type modifier?
Why do we use return statement?
What are the object and class classes used for?