Answer Posted / debapriya patra
Interface:
Through interface we get the multiple inheritance
in java.And we implement interfaces to override the
abstract methods it contains.
Abstract class:
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.
If we wants to prevent a class from instantiation then we
mentioned it as abstract.
| Is This Answer Correct ? | 25 Yes | 18 No |
Post New Answer View All Answers
How big is a 32 bit integer?
How does arraylist size increase in java?
Are private methods final?
Explain the importance of throwable class and its methods?
Why is singleton not thread safe?
What is return null in java?
How many bits is a word?
Are maps ordered java?
What are the application of stack?
What are nested classes in java?
What is floor math?
How do you get length in java?
Does apple use java?
Does java trim remove newline?
Is node a data type in java?