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
Why are constructors used?
Why synchronization is important?
How to retrieve data from database in java using arraylist?
Why we override equals() method?
What is java virtual machine? Explain
What class allows you to read objects directly from a stream?
What class allows you to read objects directly from a stream in java programming?
Is zero a natural number?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is singleton service?
java program with complete 4 oops concepts implemented example
Can a class with private constructor be extended?
Write a java program to check if a number is prime or not?
What is thread start?
Explain about version control?