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
What is the generic function?
What is intern method in java?
What do you mean Abstraction in java?
What is variable and its types?
What is the difference between hashset and treeset in java?
How do you declare an array in java?
How does predicate work in java?
What is the difference between notify and notifyall method?
What is the difference between multiple processes and multiple threads?
How do you convert bytes to character in java?
Is java free for businesses?
What are the advantages of defining packages in java?
Why can't we make a class private in java?
why java does not support unsigned keyword?
State the significance of public, private, protected class?