what is difference between abstraction and interface?
Answer Posted / kavitha
Abstract classes define methods and interfaces declare
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same
functionality across various classes.
Interfaces are useful for classes which varies in
functionality and with the same method signature.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
what happens when a thread cannot acquire a lock on an object? : Java thread
What is unmodifiable collection in java?
Write a program in java to create a doubly linked list containing n nodes.
Explain about doubly linked list
How do generics work?
Tell me the latest versions in java related areas?
What do you mean by order of precedence and associativity?
What is floor math?
How does queue work in java?
Explain java code for recursive solution's base case?
What does pointer mean?
What is a substitution variable?
What is the difference between jfc & wfc?
What makes a function well defined?
How is Object Oriented Programming different from Procedure Oriented Programming?