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 a double?
What is anti pattern in programming?
How use .contains in java?
Can we sort hashmap in java?
What is outofmemoryerror in java?
Why java is a platform independent? Explain
Is java a super set of javascript?
can we access the super class method using subclass object?
Why chararray() is preferred over string to store the password?
Can we declare an anonymous class as both extending a class and implementing an interface?
8 Answers College School Exams Tests, JVA, TCS, Wipro,
What is parseint?
Which object oriented concept is achieved by using overloading and overriding?