when to use abstract class and when to use interface?
Answer Posted / ravikiran
abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.
Is This Answer Correct ? | 34 Yes | 29 No |
Post New Answer View All Answers
When super keyword is used?
What is the difference between reader/writer and inputstream/output stream?
What are some alternatives to inheritance?
Is stringwriter thread safe?
What happens if I remove static from main method?
What is an inner class in java?
How objects are stored in java?
Can a class extend 2 classes in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is string args [] in java?
What is hashmap and map?
What is json parser in java?
Can a vector contain heterogenous objects?
What is advantage of java?
What is multi-catch block in java?