Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?
Answer Posted / nt.jayan
Interface contains final variable and method signatures
only. All of this method and variable are should be public.
In Technically interface like Pure Abstract class.
Abstract class contains both abstract method also may having
some method defination. When we want to use some of the
functionality in abstract we use Abstract class.
Also, By using Interface we achieve multiple inheritence
using Implements. When we use Abstract class we can extends
only.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which is faster set or list in java?
How to access arraylist elements in java?
What are java packages?
what do you mean by marker interface in java?
Name few java util classes introduced with java 8 ?
What is the difference between and ?
What is the constructor?
What is boolean keyword in java?
Explain the different forms of polymorphism?
What is the meaning of variable in research?
Are registers volatile?
Explain the difference between transient and volatile in java?
What happens if an exception is not handled in a program?
Explain jdk, jre and jvm?
What do u mean by variable?