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
What are the advantages of functions?
When arithmeticexception is thrown?
Why are parameters used in functions?
What is javac in java?
What is the use of inner class?
What is thread safe java?
Is double bigger than float?
What is the difference between equals() and == in java?
What is arraylist e in java?
Differentiate between postfix and prefix operators in java.
What is the maximum size of a string in java?
What is __ init __ functions?
Define the term string pool?
What is a wrapper method?
What is the difference between a static and a non-static inner class in java programming?