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
Is string thread safe in java?
what is server side caching?
How is abstraction implemented in java ?
Is an array a vector?
What is instanceof keyword?
When should I use a singleton?
How do you sort in ascending order in java?
What is annotation in java?
What is overriding in java?
Which method returns the length of a string?
What is finally and finalize in java?
Why put method is idempotent?
How do you delete a list in java?
What is the use of parseint in java?
How does remove work in java?