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

what is the filters in biztakk server? where it can use?

1645


what is the purpose of checked Menu options

1974


what are resources in case of Threads

1661


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

3689


10.Define filters,binary to hexadecimal,hexadecimal to decimal?

1510






In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

1841


what are all the ant command options

1504


Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance

1479


What is the difference between WebIntelligence and Designer in creating universes?

1463


Differevce between arrays and array builders?

1636


How to set on/off a group of indicators in a single statement?

1371


What is the entry point function of a DLL?

613


what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?

2083


how to check single or double byte in struts

1549


SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?

1506