Can you have a constructor in abstract class?
Answer Posted / vivek
Yes you can have only non parameterized constructor in
abstract class, Because for parameterized constructor we
will have to make instance of abstract class which is not
possible.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is ++ operator thread-safe in java?
How do you square a number?
What do you mean by constructor?
What does flagged out mean?
Does java return by reference?
Explain the selection sort algorithm?
What is starvation?
What is JVM and is it platform independent?
What is math in java?
What is contractor means and methods?
How to remove the trailing spaces from a string?
Define inheritance with reference to java.
What are meta-annotations?
What is classname class in java?
What is stringreader?