what is difference between abstraction and interface?

Answers were Sorted based on User's Feedback



what is difference between abstraction and interface? ..

Answer / kavitha

Abstract classes define methods and interfaces declare
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same
functionality across various classes.
Interfaces are useful for classes which varies in
functionality and with the same method signature.

Is This Answer Correct ?    12 Yes 0 No

what is difference between abstraction and interface? ..

Answer / chandra rekha

A class becomes an abstract class when it has atleast one
abstract method(a method with no definition).The major
difference between abstract classes and interfaces is that
an abstract class can contain both methods with zero
definition as well as methods with definition.But an
interface is one in which all the methods are with no
definition.

Is This Answer Correct ?    5 Yes 0 No

what is difference between abstraction and interface? ..

Answer / muthusenthil

Abstract class contains one or more unimplemented methods
left for future implementation by its derived class.it has
all property of class it cannot be instantiated.it provides
default behaviour.

Interface is mear specification nothing is implemented its
just a declaration.in java using interface we can model
multiple inheritance. it provides design flexibility.

Is This Answer Correct ?    1 Yes 0 No

what is difference between abstraction and interface? ..

Answer / munna

in abstraction we ca have abstract method and normal method
but in interface we must and should write only abstract methods

Is This Answer Correct ?    1 Yes 0 No

what is difference between abstraction and interface? ..

Answer / pushpendra mishra

Abstract is used in Frame work but Interface is used in specification

Is This Answer Correct ?    1 Yes 0 No

what is difference between abstraction and interface? ..

Answer / hitesh mandhyan

Abstraction is used in framework interface is used in
specification...

Is This Answer Correct ?    1 Yes 2 No

what is difference between abstraction and interface? ..

Answer / meena

abstraction is used in framework
interface is used in specification

Is This Answer Correct ?    1 Yes 2 No

what is difference between abstraction and interface? ..

Answer / ravikiran

abstraction is used in framework
interface is used in specification

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

what is multithreading?

5 Answers   Virtusa,


What are new features introduced with java 8 ?

0 Answers  


Is java 1.7 the same as java 7?

0 Answers  


how many ways we can serialize the java object?

2 Answers   Satyam,


What are the steps to do connection pooling in weblogic?

1 Answers   TCS,






How to sort an array in java without using sort method?

0 Answers  


What is the constructor?

0 Answers  


How do u pass data from one jsp to another jsp?

3 Answers   Fidelity,


What is the symbol for line break?

0 Answers  


What are computer functions?

0 Answers  


explain the concept of virtual method invocation in polymorphism in detail?

0 Answers   TCS,


What are the two types of java?

0 Answers  


Categories