Can you have a constructor in abstract class?
Answer Posted / sumit
But you can create constructor in an abstract class.
and whenever you careate object of class implementing
abstarct class, constructor of te abstract class runs.
| Is This Answer Correct ? | 108 Yes | 13 No |
Post New Answer View All Answers
What is difference between == equals () and compareto () method?
Why singleton class is used in java?
Can anonymous class have constructor?
Can we use catch statement for checked exceptions?
What does index mean in java?
Is string is a keyword in java?
Can we have a try block without catch block?
Which is fastest collection in java?
What is the advantage of OOP in java?
What is the main functionality of the remote reference layer?
What are the advantages of arraylist over arrays?
What is general methodology?
What is stringbuffer in java?
What is instanceof keyword?
What is a layout manager and what are different types of layout managers available in java awt?