Difference between abstract class and Interfaces in Java

Answers were Sorted based on User's Feedback



Difference between abstract class and Interfaces in Java..

Answer / surendrareddy

abstract clas have both abstract methods and Concrete methods.
but interface have only abstract methods,
And also abstract class have construtor,but interface
doesn't have.

Is This Answer Correct ?    48 Yes 9 No

Difference between abstract class and Interfaces in Java..

Answer / guest

abstract classes can have other concrete methods but
inteface only abstract methods.

Is This Answer Correct ?    35 Yes 4 No

Difference between abstract class and Interfaces in Java..

Answer / manish sharma

Abstract classes Interfaces

Abstract classes are used only when there is a “is-a” type
of relationship between the classes. Interfaces can be
implemented by classes that are not related to one another.
You cannot extend more than one abstract class. You can
implement more than one interface.

Abstract class can implemented some methods also.
Interfaces can not implement methods.
With abstract classes, you are grabbing away each class’s
individuality. With Interfaces, you are merely extending
each class’s functionality.

Is This Answer Correct ?    24 Yes 4 No

Difference between abstract class and Interfaces in Java..

Answer / your friend

abstract classes can have any type of medthods but
interface allows only abtract methods.
Interface is like a class not a class .

Is This Answer Correct ?    19 Yes 8 No

Difference between abstract class and Interfaces in Java..

Answer / venkateswarlu dhaninkula

Interfaces consists of pure abstract methods
but not abstract class

abstract class having both abstract methods and non
abstract methods

interfaces declare all variables are final and public

but not abstract class

abstract class has a default constructor

but not interface

Is This Answer Correct ?    8 Yes 1 No

Difference between abstract class and Interfaces in Java..

Answer / megha mokawat

Abstract class can have non-final variable aslo
but in interface variable are final by- default

Is This Answer Correct ?    8 Yes 2 No

Difference between abstract class and Interfaces in Java..

Answer / narasimha raju

An abstract classes can have concrete methods and declares
abstract method which method can implement in different
ways. whereas in interface all are abstract methods.
in abstract class we can declare any type of variable
but in interface all are final variables.

Is This Answer Correct ?    8 Yes 5 No

Difference between abstract class and Interfaces in Java..

Answer / krishna

In Abstract class should implementation methods information
with complete i.e Programmer duty .

But in Interfaces we can give implementations to End-User .

Is This Answer Correct ?    0 Yes 0 No

Difference between abstract class and Interfaces in Java..

Answer / riyadh

yes

Is This Answer Correct ?    7 Yes 11 No

Post New Answer

More Programming Languages AllOther Interview Questions

what is technical system, business system, logical system in sap pi7.0

0 Answers   IBM,


iam confused among testing ,.net and java. can anybody help me.

0 Answers  


major characteristics of software system

0 Answers  


what will we require to build project with the help of oracle

0 Answers  


What is meant by SQL,PL/SQL,SQL PLUS? Is there any differnece between them?

2 Answers   HSBC,






I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that

0 Answers  


can any one suggestion me present which course(except java,.net) has huge demand in the market?

0 Answers  


How Many versions are there in crystal reports

2 Answers   Wipro,


what is class module in vb6? what it's use? with example..

0 Answers  


how to generate dsnless connectivity in j2ee

0 Answers  


hai i like to do some certifications in programming or any other......... am doing my IT third year......... pls guide me...... mail me ur suggestions to ranjithmaharaj@gmail.com...

1 Answers  


___ method used to move a recordset pointer in nth position in DAG.

1 Answers  


Categories