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 are the limitations of procedural programming approach?
Is null a string in java?
What mechanism does java use for memory management?
What are the advantages of compiled language?
What is Session reduplication and how its done?
Can a set contain duplicates?
Define canvas?
How to connect to a remote database using Applet?
Does java have a compiler?
What are the advantages of java over cpp?
In case of inheritance what is the execution order of constructor and destructor?
What language is java written?
Why stringbuilder is not thread safe?
How will you compute size of a structure?
How hashmap works in java?