what is difference between abstraction and interface?
Answer Posted / muthusenthil
Abstract class contains one or more unimplemented methods
left for future implementation by its derived class.it has
all property of class it cannot be instantiated.it provides
default behaviour.
Interface is mear specification nothing is implemented its
just a declaration.in java using interface we can model
multiple inheritance. it provides design flexibility.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do generics work in java?
Can substring create new object?
Can singleton class be serialized?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What is a ?
Give us the name of the list layoutmanagers in java?
what methods would you overwrite in java.lang.object class?
How many characters is 2 bytes?
How does sublist works in java?
What does void * mean?
Why are data types important?
What is the difference between numeric and integer?
What is the difference between replace and replace all?
Can a class be protected in java?
What is return code?