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
Where local and global variables are stored?
Can we have any code between try and finally blocks?
What is a package in java? List down various advantages of packages.
What is the java idl system?
What is Major and importance difference between for and foreach loop ?
If a variable is declared as private, where may the variable be accessed?
What is the purpose of a default constructor?
What exactly is methodology?
What is treeset in java?
What is the main use of java?
What do you understand by private, protected and public?
Can constructor return value?
What is the difference between assignment and initialization?
What are parameters in a method?
What is final access modifier in java?