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 |
Difference between this() and super() ?
How many types of java are there?
What are the features of java?
What is internal iteration in java se 8?
What is a programming object?
describe synchronization in respect to multithreading? : Java thread
How do you declare a variable?
How will you serialize a singleton class without violating singleton pattern?
Why null value is used in string?
What problems will occur when you don?t use layout managers?
Different types of Layouts?
When you say String is immutable, what do you mean by that? Say I have String s = "Ness" s= s+"Technologies"; What will happen? If the value gets appended, then what is the meaning of immutable here?