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

Answer Posted / ashok kumar

Methods in the abstract class can be accessed only through
a class hierarchy i.e through inheritance.

But methods in the interface can be accessed anywhere i.e
across the class hierarchy.(without inheritance).

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of javac exe?

651


What is meant by distributed application? Why are we using that in our application?

650


What is a boolean in java?

671


Is intellij better than eclipse?

636


Is java call by reference?

618






Define inheritance with reference to java.

669


What are the different types of inheritance in java?

631


Is logger a singleton?

608


What is a functional interface?

648


Which is bigger float or double java?

620


How does a cookie work in Servlets?

460


What does += mean coding?

606


Why is whitespace important?

659


What is classes in java?

596


Is alive method in java?

590