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
What is javac in java?
What are use cases?
How can we make copy of a java object?
What is final modifier?
What is the format specifier?
Why heap memory is called heap?
What do you understand by soft reference?
Does java runtime require a license?
What is hotjava?
Can arraylist hold different types java?
How do you write a good declaration?
Why charat is used in java?
What are the different types of constructor?
Will the jvm load the package twice at runtime?
Where pragma is used?