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 you read and print a string in java?
Can an interface extend a class?
how to split string in java?
Can I use % with real numbers?
How do you escape sequences in java?
Explain 5 io best practices?
What is hashmap in java?
How many ways can an argument be passed to a subroutine and explain them?
Explain about anonymous inner classes in java?
Can we use different return types for methods when overridden?
Why is method overloading not possible by changing the return type in java?
What are java packages? What's the significance of packages?
Can we sort array in java?
Give few examples of final classes defined in Java API?
Can we assign the reference to this variable?