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
Define canvas?
What are the three types of design patterns?
What are three advantages of using functions?
what are Hostile Applets?
Is there a way to increase the size of an array after its declaration?
Can we serialize arraylist in java?
What is a method signature java?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
How do you define a singleton class?
What is the difference between an array and an array list?
What is the difference between && and & in java?
Is upper case in java?
What is double parsedouble in java?
What does \ mean in regex?
Write a program to print all permutations of string?