Difference between interface and abstract class?

Answers were Sorted based on User's Feedback



Difference between interface and abstract class? ..

Answer / jenypatel86

There is no difference in the functionality of these two.The
only difference is that a class cannot extend an abstract
class if it already is extending some other class.An interface
on the other hand can be implemented in any situation which
makes them very powerful.Also user defined exceptions can be
defined within an interface itself, which is not the case with
an abstract class.

Is This Answer Correct ?    6 Yes 0 No

Difference between interface and abstract class? ..

Answer / m.shanmuga sundaram rjnsoftwar

There are some subtle differences between an abstract class
and an interface

1)
A class can inherit multiple interfaces
A class can inherit only one abstract class

2)
An interface does not contain any access specifier,fields
and code. By default the access specifier is public.

An abstract class can contain any access specifier,fields
and code.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More Programming Languages AllOther Interview Questions

is try block possible without catch block?

3 Answers  


I want Ada programming language books. Could anyone post me any link for that?

1 Answers  


which one is the best practice using synchronization method or synchronization block

1 Answers   TCS,


what is the difference between read the data from table and infotype

1 Answers  


if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008

1 Answers  


Tell me the jobs for the MCA Fresher in delhi, Noida..

1 Answers  


Explain what is OOPS and its concepts?

1 Answers   BirlaSoft,


Can we write a method in JSP.If so how?

1 Answers   HCL,


What is WEB 3.0? What are the features their in WEB3.0

1 Answers  


2. What do you mean by DHCP?

1 Answers  


Wats the name of the first os

2 Answers  


what is lazy loading in hibernate?Explain in detailed manner?

2 Answers   IBM, TCS,


Categories