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

Answer Posted / ravi

if all the methods are abstract in abstract class,then the
only difference left is,,,,

interface can have static and final variables with public
and abstract access modifier only ,,,while abstract class
can have any type of variable with any type of access
modifiers

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort a set in java?

515


What do you mean by buffering?

550


How to check if linked list contains loop in java?

457


What is the primitive type byte?

580


What do you understand by private, protected and public?

520






What is super in java?

570


What is an object's lock and which object's have locks in java programming?

563


What are the important features of Java 9 release?

530


What is qualitative variable?

520


What is the relationship difference the canvas class and the graphics class?

560


is it possible to instantiate the math class?

526


What is entry set in java?

531


what do you mean by classloader in java?

566


Explain polymorphism citing an example.

590


What do u mean by variable?

563