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 |
How can you read an integer value from the keyword when the application is runtime in java? example?
what is the use of bean managed and container managed with example?
What are class types in java?
In what circumstances, compiler will supply a default constructor for a class?
What are integer overflows and underflows and how to handle them?
Can java inner class be static?
what is the difference between cd & dvd ?
30 Answers Lovely Professional University, Satyam, Sibylsys,
What is the difference between JDK and JVM?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
What are the different data types in java?
How can you handle java exceptions?
What is a for loop in java?