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 is the purpose of javac exe?
What is meant by distributed application? Why are we using that in our application?
What is a boolean in java?
Is intellij better than eclipse?
Is java call by reference?
Define inheritance with reference to java.
What are the different types of inheritance in java?
Is logger a singleton?
What is a functional interface?
Which is bigger float or double java?
How does a cookie work in Servlets?
What does += mean coding?
Why is whitespace important?
What is classes in java?
Is alive method in java?