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 default specifier ??? Use of default specifier ???
What are filterstreams?
How can you reverse a string?
Can one thread block the other thread?
How to sort array in descending order in java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,
What is the use of default method in interface in java?
what is difference betweem home interface and remote interface?
Java run-time system generates What class of exceptions?
How can constructor chaining be done using this keyword?
When throws keyword is used?
What is boolean data type in java?