If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / ravi sv

Multiple inheritance is possible only through interface,not
with abstract class. So if u have an interface we can go
implementing multiple interfaces rather than extending a
single abstract class.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java support multiple inheritance or not?

593


What are the data types supported by java?

541


How to print an arraylist in java?

489


What is string data?

547


What is the final keyword denotes?

664






Why convert an applet to an application?

610


Define max and min heap, also the search time of heap.

580


Can an interface extend another interface?

588


Which is better 64 bit or 32 bit?

500


Explain access modifiers in java.

577


what methods would you overwrite in java.lang.object class?

558


What is compareto () in java?

533


Explain the scope or life time of class variables or static variables?

509


Does java allow overriding static methods ?

622


How do you sing an Applet ?

2026