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 pangram in java?
How do you remove duplicates from an array in java?
How are multiple inheritances done in Java?
Is null keyword in java?
Can we declare a constructor as final?
What is getkey () in java?
What is class level lock ?
Why charat is used in java?
Can we have try without catch block?
Can you declare an interface method static?
Which data type is class in java?
Is void a return type?
Can we overload destructor in java?
Which collections are thread safe in java?
What is a java string?