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
What is the escape character in java?
Explain access specifiers?
What is the internal implementation of set in java?
What is difference between an object and a class?
What is the synonym of framework?
What causes memory leak in java?
Explain, java is compatible with all servers but not all browsers?
What is the difference between Error, defect,fault, failure and mistake?
What's the purpose of static methods and static variables?
What is a blocking method in Java?
Can sleep() method causes another thread to sleep?
Where are register variables stored?
What is linkedlist in java?
Can an interface have a constructor?
What is a parameter example?