what is difference between abstraction and interface?
Answer Posted / kavitha
Abstract classes define methods and interfaces declare
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same
functionality across various classes.
Interfaces are useful for classes which varies in
functionality and with the same method signature.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is an immutable object?
Can a final variable be null?
What is outofmemoryerror in java?
Write a program to reverse array in place?
Define immutable object?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Explain about serializable interface in java?
How do I enable java in safari?
How do you create immutable object in java?
What are the different types of multitasking?
Can java inner class be static?
What data type is a string?
Why vector class is used?
Write a java program for binary search?
What is package protected in java?