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
Can we use string in the switch case?
Explain constructors and types of constructors in java.
Difference between method overloading and method overriding in java ?
What is java full form?
why Interface used?
State the merge-sort principle and its time complexity.
What is the requirement of thread in java?
What is application system?
What is java literals?
What's the purpose of static methods and static variables?
Can a static class implement an interface?
What is the difference between keyword and identifier?
What is an object class?
What is your platform?s default character encoding and how to know this?
Difference between abstract and concrete class ?