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 is a newline character in java?
What are bind parameters?
java is puerly object oriented or not ?
Can an arraylist be empty?
What is the format of Inner Class after it compiled?
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
what is the Use of throws exception?
Can you create an object of an abstract class?
What is floor math?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is static variable with example?
Can array grow dynamically in java?