Answer Posted / ram
Abstract class have the constructor in it just to instantiate its instance variables. Where as Interfaces are not containing any instance variables. That is why, they dont have constructor concept.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I override protected method in java?
Explain java thread life cycle.
What is a superclass?
What is use of super keyword?
Can abstract class have private constructor?
What are byte codes?
What is the final class modifier?
What is the different between get and post?
Why packages are used?
What is serialversionuid?
Can you pass functions in java?
Explain the pointers in Java?
What is parsing a sentence?
Which data type is class in java?
Is nullpointerexception checked or unchecked?