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
What are the advantages of assembly language?
Define inheritance with reference to java.
How use .contains in java?
What are 4 pillers of object orinted programming?
What is a variable simple definition?
Can list contain null in java?
What do you mean by platform independence?
What is the difference between error and an exception?
What is the difference between JDK and JVM?
What are functions in java?
What does @override mean?
What does replaceall do in java?
What types of index data structures can you have in java?
What is a variable in java?
Which class represents the socket that both the client and server use to communicate with each other?