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 are the advantages of assembly language?

493


Define inheritance with reference to java.

573


How use .contains in java?

614


What are 4 pillers of object orinted programming?

576


What is a variable simple definition?

572






Can list contain null in java?

620


What do you mean by platform independence?

579


What is the difference between error and an exception?

562


What is the difference between JDK and JVM?

623


What are functions in java?

493


What does @override mean?

528


What does replaceall do in java?

477


What types of index data structures can you have in java?

606


What is a variable in java?

524


Which class represents the socket that both the client and server use to communicate with each other?

562