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
When will we use them?
Can inner class have constructor?
What is method overriding in java ?
What is the purpose of sizeof operator?
what is bmg file and how to create that files?what will it contailn?
Explain some best practices you would apply while using collection in java?
What flag up means?
What 4 doubled?
What is intern method in java?
What language is java written?
How to read and write image from a file ?
What is a predicate method?
What does 3 dots mean in java?
Is null function in java?
How hashmap works in java?