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
Why java strings are immutable in nature?
What is anti pattern in java?
Can list be final in java?
How define set in java?
What are 5 boolean operators?
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?
What is java Applet?
what is synchronization and why is it important? : Java thread
What mechanism does java use for memory management?
What is null data type?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Can you access non static variable in static context?
Can we use static class instead of singleton?
What are different types of references?
What is ellipsis in java?