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 string args [] in java?

799


What modifiers may be used with an inner class that is a member of an outer class in java programming?

797


How many ways can we create singleton class?

752


What is stringbuffer in java?

836


Can a java program have 2 main methods?

821


Why java is used everywhere?

787


Can we override constructors in java?

895


How can constructor chaining be done using this keyword?

986


What is variable explain with example?

813


What is the purpose of final keyword and when to use it?

805


What is stringreader?

733


Can you instantiate the math class?

846


What is the difference between sop and work instruction?

720


Give me an example of array and linked list? Where they can be used?

791


What is ++ a in java?

784