Difference between abstract class and Interfaces in Java

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to data grid use in data bind?

1494


1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?

1918


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1507


Explain three modes in which files can be accessed from python program

1324


What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?

1628






how many types of bytes are there???

1987


Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...

1789


1.Mutating table

1395


how to work search engine? plz detail answer me.

1487


In project we have Documentation phase also,in that what is micro and macro designing?

1424


is it acceptable if we declare multiple exceptions in same overridden method.

2110


what does mean and stack mean in genral programming?

1444


Difference of Console, web & windows applications?

1589


WHat is execution in manual testing and when will we start execution and what language we use in execution

1480


When we use Windows authentication mode

1580