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


Please Help Members By Posting Answers For Below Questions

What is the main function in java?

526


What is the size of int in 64-bit jvm?

547


What is a literal coding?

509


What are the advantages of compiled language?

573


What are access specifiers in java ?

588






Is multiple inheritance supported by java?

503


What is replacefirst in java?

567


What are namespaces in java?

520


What is the difference between arraylist and hashset in java?

513


What is enhanced loop in java?

546


Can we override private methods?

542


Explain creating threads by extending thread class ?

574


Can a class be protected in java?

497


What is a get method?

529


What are accessor methods in java?

547