Can u write constructor in abstract.If yes den when it will
be invoked.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / chaitali chari
You cannot have a abstract constructor. If you declare a
constructor as abstract then it would give any error while
compilation saying abstract modifier not allowed.
| Is This Answer Correct ? | 3 Yes | 18 No |
What is use of map in java?
What is the main function in java?
What language is java written?
Is it possible to override the main method?
What is identifier give example?
How to sort an array in java without using sort method?
What is meant by the value of a variable?
How could Java classes direct program messages to the system console, but error messages, say to a file?
What is the difference between conversation & casting?
how do I create a runnable with inheritance? : Java thread
What are class members by default?
What is supplier in java?