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 is udp in java?
What are examples of modifiers?
What are the three parts of a lambda expression?
What are different access specifiers in java?
How to check if a list is sorted in java?
What is difference between public static and void?
What is a copy constructor in java?
What is == mean?
What is field name?
What is locale?
How to do encapsulation in java?
State the difference between creating string as new () and literal.
What is final class?
Why parameters should be passed by reference?
How do you decide when to use arraylist and linkedlist?