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 the main function in java?
What is the size of int in 64-bit jvm?
What is a literal coding?
What are the advantages of compiled language?
What are access specifiers in java ?
Is multiple inheritance supported by java?
What is replacefirst in java?
What are namespaces in java?
What is the difference between arraylist and hashset in java?
What is enhanced loop in java?
Can we override private methods?
Explain creating threads by extending thread class ?
Can a class be protected in java?
What is a get method?
What are accessor methods in java?