when to use abstract class and when to use interface?
Answer Posted / jc
If you want give different implementation(behaviour) to
methods which are available in the interface go for
interface.
If you want give different implementation to particular
methods(that is only some methods which are not similar to
subclass)go for abstract class.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Can constructor return value?
What restrictions are placed on method overloading?
What Is Query Throttling in java?
What are the restrictions that are applied to the java static methods?
What are void pointers?
Give us a program to check for parenthesis matching using stack.
What is final int?
If you do not want your class to be inherited by any other class. What would you do?
How to pass arraylist to stored procedure in java?
What does java final mean?
Can a class extend 2 classes in java?
Can arraylist contain null values?
Can list be final in java?
How can you handle java exceptions?
What is procedure overloading?