What is the diff. b/w Interfaces & Abstract class?

Answer Posted / supriyo pal

There are three main differences between an interface and an abstract class:
• At the same time multiple interfaces can be implemented, but only extend one class
• an abstract class may have some method implementation (non-abstract methods, constructors, instance initializers and instance variables) and non-public members
• abstract classes may or may not be a little bit faster

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a prefix function.write down a code to compute prefix function.

794


What is the full name of java?

827


What is the importance of static variable?

822


How do you initialize an arraylist in java?

760


What is the difference between delete and delete[]

975


What is difference between local variable and global variable?

741


What kind of variables can a class consist?

817


What is a method vs function?

780


Explain the difference between abstract classes and interfaces in java?

866


List some java keywords sun like c, c + + keywords?

807


What is autoboxing and unboxing?

780


What is difference between array and vector?

836


What is method overloading in JAVA? Why is it not present in C ?

818


How many techniques can be employed to create a string object?

818


How is final different from finally and finalize?

702