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

I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.

4675


which worker is involved in all the phases of SDLC?

1854


Explain what is OOPS and its concepts?

728


what is the work of 1tier,2tier,&ntier? Plz Explain it!

2168


how to convert the data from HTML file to SAS dataset?

2341






Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?

1692


what is the use MDM(Master Data Management)and meaning

2102


When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.

1582


what is meant by life cycle of a business

1840


in IBM PC -AT.WAT AT REFERS TO?

1589


in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?

1823


Which language they use during interview?

1678


Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe

1620


What's the difference b/w Table & Templete in Smartform?

1810


how to stop execution of step 3 in a job mainframe

1855