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 are different access specifiers in java?
Why is stringbuffer thread safe?
What are the operands of instanceof operator?
What is += mean in java?
What is prefix of a string?
How is Object Oriented Programming different from Procedure Oriented Programming?
What does regex mean?
If try block is successfully executed, Then Is Finally block executed?
What are bind parameters?
How many decimal digits is 64 bit?
Define Wrapper Classes in Java.
What is ‘has a’’ relationship in java?