can u give one sinario when you use Abstract Class and When
you use Interface.
Answer Posted / srinivasa
If there are multiple objects which use common methods and
different implementaion of methods We use Abstract class.
If multiple objects use different implementation of methods
for every object we use interface.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are the characteristics of Final,Finally and Finalize keywords.
Explain parallel processing in java8?
What is an error in java?
Differentiate between a class and an object.
Compare java and python.
How is a variable stored in memory?
What is the default execution method in java?
How do you escape json?
What are the different ways to handle exceptions?
why Java does not support multiple inheritances?
What defines function?
What is a parameter used for?
What is a char in java?
What access modifiers can be used for variables?
What is flush () in java?