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

Can we declare a static variable inside a method?

1 Answers  


How to create a thread in java?

1 Answers  


What is a numeric string?

1 Answers  


What is the default value stored in Local Variables?

5 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


What is run time allocation?

1 Answers   Fidelity,


What does || || mean in math?

1 Answers  


Explain about doubly linked list

1 Answers   Aditi Placement Service,


all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.

8 Answers   CFG,


State some situations where exceptions may arise in java?

1 Answers  


What is structure of java heap? What is perm gen space in heap?

1 Answers  


Can you explain the usages of class.forname()?

1 Answers  


Categories