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
Is java map thread safe?
What is a class variable?
What is method in research paper?
Why is java so popular?
Are constructors methods?
What is the difference between static method and instance method in Java?
What is a Transient Object?
How do you achieve singleton?
What is a loop java?
Explain about the main() method in java?
Write a program to find the whether a number is an Armstrong number or not?
Name few java util classes introduced with java 8 ?
What is the use of toarray () in java?
What is method in java ?
What are the two types of exceptions in java? Which are the differences between them?