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 wrapper class example?
What will happen when using pass by reference in java?
Why convert an applet to an application?
How to change the priority of thread or how to set the priority of thread?
what is platform dependent translation and platform dependent programming language
Can an object be null?
How does final modifier work?
Is math class static in java?
Can a boolean be null java?
What are the types of strings?
What is lambda expression in java?
Define reflection.