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 do you mean by garbage collection used in java?
How do singleton patterns work?
What is the scope or life time of instance variables?
What is variable in java?
Explain the difference between abstraction and encapsulation.
What is a class object?
what is a thread pool in java and why is it used?
Explain the importance of join() method in thread class?
What are parsers? Dom vs sax parser.
Where are global variables stored?
Why does java not allow multiple public classes in a java file ?
What purpose do the keywords final, finally, and finalize fulfill?
Does .length start 0 java?
How do you pass by reference?
How do you sort an array in java?