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

Answers were Sorted based on User's Feedback



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

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

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

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

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

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

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

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

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

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

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

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

Post New Answer

More Core Java Interview Questions

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

0 Answers  


Does java set allow duplicates?

0 Answers  


How objects are stored in java?

0 Answers  


How does synchronized modifier work?

1 Answers   IBM,


What do u mean by variable?

0 Answers  






What is the exact difference in between Unicast and Multicast object? Where will it be used?

0 Answers  


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


How many ways can an argument be passed to a subroutine and explain them?

0 Answers  


To obtain design information about an object, which class in used?

1 Answers  


What is implicit object in java?

0 Answers  


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

0 Answers   Infosys, TCS,


What is passing by reference in java?

0 Answers  


Categories