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 are the string methods in java?
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Difference between this() and super() ?
What is the formula to calculate percentage?
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
Does treeset allow null in java?
Give few examples of final classes defined in Java API?
Difference between == and .equals() ?
Can I overload to string method
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What interface is extended by awt event listeners?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,