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 length of a string?

726


What does g mean in regex?

730


What is the difference between pass by reference and pass by pointer?

697


What are the main differences between the java platform and other platforms?

740


What is blank final variable?

782


What is an accessor?

1310


What is bool mean?

742


How do you square a number in java?

762


Why bytecode is called bytecode?

791


How do I get 64 bit java?

700


What does %d do in java?

781


Which variable is the independent variable?

762


What is the exact difference in between unicast and multicast object? Where we will use?

767


What is the mapping mechanism used by java to identify IDL language?

787


Explain about narrowing conversion in java?

760