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 the function of http?
What are sets in java?
what is the final keyword denotes in java?
What ide should I use for java?
Can an abstract class be a final class?
Explain the difference between collection api and stream api in java8?
What is jrmp?
How many java versions are there?
What is boolean keyword in java?
Why do we need wrapper classes?
Why Java is not pure Object Oriented language?
What is finally and finalize in java?
What is the difference between equals() and?
when to use ArrayList and when to use HashMap in webApplication.
What is the difference between compiler and jvm?