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
Does garbage collection occur in permanent generation space in jvm?
Why synchronization is important in java?
What are the restrictions that are applied to the java static methods?
What is the purpose of the enableevents() method?
What is the diffrence between inner class and nested class?
What is a singleton factory?
What is the purpose of main function in java?
What is the use of generics? When was it added to the Java development Kit?
What does this mean java?
In how many ways we can do exception handling in java?
How can we make sure main() is the last thread to finish in java program?
What do you understand by classes in java?
What is a lightweight component?
What is %02d?
What is the maximum size of byte array in java?