Difference between Interface & Abstract class?

Answer Posted / janet

1.All the methods declared inside an interface are abstract
where as abstract class must have atleast one abstract
method and others may be concrete or abstract.

2.In abstract class ,keyword abstract must be used for the
methods where as interface we need not use that keyword for
the methods.

3. Abstract class must have subclass where as interface
can't have subclasses.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of garbage collection in java? When is it used?

812


What is class forname used for?

787


What is console based application in java?

795


Can we increase array size dynamically in java?

721


What does += mean coding?

733


How many types of methods are there in java?

761


What are keyboard events?

848


can rmi and corba based applications interact ?

852


Explain try and catch keywords in java?

880


How many decimal places is a double?

736


what r advatages of websphere? & how to deploy?

1857


Why is java architectural neutral?

856


What is return null in java?

712


Can a constructor be private and how are this() and super() method used with constructor?

750


What is the difference between static class and normal class?

755