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 |
whats the difference between == and .equal ?
what is aggregation in java?
Can constructor be static or final?
what is Thread priority?
4 Answers Tech Mahindra, Wipro,
Can a final method be overloaded?
What is double data type?
What is the default value of float and double datatype in java?
What is method overloading in JAVA? Why is it not present in C ?
0 Answers Akamai Technologies,
Is main is a keyword?
I want to print “hello” even before main is executed. How will you acheive that?
What is xslt in java?
How to implement a multithreaded applet?