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

How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

824


What is the difference between an interface and an abstract class?

762


What is the basic of java?

784


Mention the default values of all the elements of an array defined as an instance variable.

738


What is assembly condition codes?

760


What does main method?

781


Is null a keyword in java?

736


What is used of static keyword in java?

774


Explain method local inner classes ?

798


What is a private class in java?

733


What is the difference between instanceof and isinstance?

763


What is the integer of 16?

754


What is the synonym of framework?

755


Which one of the following suits the description of a string better: derived or primitive?

734


What does null mean in java?

843