Can u write constructor in abstract.If yes den when it will
be invoked.
Answer Posted / chaitali chari
You cannot have a abstract constructor. If you declare a
constructor as abstract then it would give any error while
compilation saying abstract modifier not allowed.
| Is This Answer Correct ? | 3 Yes | 18 No |
Post New Answer View All Answers
Explain inheritance in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Does java return by reference?
What does math floor () do?
Give few difference between constructor and method?
Write a java program that prints all the values given at command-line.
What does pointer mean?
List some features of the abstract class.
How can we find the sum of two linked lists using stack in java?
Explain covariant method overriding in java.
Can you declare the main method as final?
What is the difference between stringbuffer and stringbuilder?
What are alternatives to java serialization?
How do you sort arrays in java?
Is null false in java?