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

How do you sort objects in java?

513


What is yield () in java?

480


How many types of methods are there?

545


What is an example of character?

552


What is an argument in java?

507






Can we create object of static class?

526


What is the difference between compiler and jvm?

551


Describe method overriding

582


What is variable and constant explain with example?

528


What is a method in coding?

566


Can list be null in java?

575


explain copyonwritearraylist and when do we use copyonwritearraylist?

537


What is functional interface in java example?

531


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

598


How do we access static members in java?

624