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

Why java strings are immutable in nature?

589


What is anti pattern in java?

514


Can list be final in java?

485


How define set in java?

512


What are 5 boolean operators?

616






There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

995


What is java Applet?

648


what is synchronization and why is it important? : Java thread

584


What mechanism does java use for memory management?

492


What is null data type?

534


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8619


Can you access non static variable in static context?

555


Can we use static class instead of singleton?

576


What are different types of references?

526


What is ellipsis in java?

576