What is the diff. b/w Interfaces & Abstract class?
Answers were Sorted based on User's Feedback
Answer / paletipatisrinu
interface contain purely undefined methods but abstract
class contain purely defined methods and undefined methods.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / parminder
Interfaces are implictly public and abstract and abstract
classes have abstract and non abstract methods
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / poornachandra
empty body of in interface doesn't have any type of defined
item's but in abstract class having defined body that is
constructor
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / poorna chandar rao.yerrabothu
in java interface having a method name its not implemented
by methods it is default abstract class not mentiond the
abstract key word
but abstract class compulosory mentioned the abstract key
word but in this abstrct class concreat methods concreat
methods means some methods are implemented some methods are
not implemented
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / lakshman
abstract class contains constructor,but interface does not.
abstract class supports all access specifier,but interface
supports only public
programmer is responsible to provide the subclass to
abstract class but interface left the implementation for the
third party vendors.
abstract class contains both abstract methods and concrete
methods but interface contains only abstract methods
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Are there any tools available in java to create reports?
What is a protected void?
what is anonymous class in java?
How does sublist works in java?
What is the purpose of main function in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Is alive and join method in java?
What is exception and error? and what is the difference between them?
Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.
I want to store more than 10 objects in a remote server? Which methodology will follow?
can any body tell me? does advance java and j2ee both are same.
what is the significance of listiterator in java?