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 |
What do you mean by constant time complexity?
what is AWT
When should you use arraylist and when should you use linkedlist?
What is meant by class loader? How many types are there?
What is the locale class in java programming?
What are scriptlets?
What are peerless components in java programming?
Explain thread life cycle in java?
Can a double value be cast to a byte?
What does .equals do in java?
Give us a program to check for parenthesis matching using stack.
What is the synchronized method modifier?