When should I use abstract classes and when should I use
interfaces?
Answers were Sorted based on User's Feedback
Answer / ved.b.tripathi
Interface : when you about to maintain the standard through
out the application then,blindly go with the interface.
Abstract : when you customize the behavior but still want to
maintain some standard then use abstract,because in abstract
you can have non abstract method that will be use by every
class that extend this abstract method and that class also
have to give the body of abstract methods(standard).
| Is This Answer Correct ? | 15 Yes | 2 No |
Is map sorted in java?
How multi processing is achieved in JAVA?
What is the replace tool?
Difference between arraylist and hashset in java?
who can i handle multiple client in RMI
Why are pointers not secure?
How to disable caching on back button of the browser?
How does synchronized modifier work?
Can a constructor be made final?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
1 Answers Akamai Technologies,
What are the features of junit?
how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?