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

What is the purpose of stub and skeleton?

635


Tell me a few examples of final classes defined in Java API?

649


What programs use java?

565


I want to print “hello” even before main is executed. How will you acheive that?

761


What is string example?

698






What is variable and constant explain with example?

665


Which class is used by server applications to obtain a port and listen for client requests?

590


What is meant by overloading?

689


Is binary a low level language?

610


When a byte datatype is used?

653


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

696


Why arraylist is not synchronized in java example?

559


What is the full form of jpeg?

613


What is integer parseint?

627


Can we split string with in java?

635