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
How big is a boolean?
What are the main concepts of oops in java?
What is nested interface?
What is an interface in java? Explain
What is immutability in java?
Why do we need hashset in java?
Where is jre installed?
How list contains works in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Are arrays classes in java?
How many bytes are there?
What is the difference between an object-oriented programming language and object-based programming language?
What is the epoch date?
What is get () in java?
What an i/o filter?