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
How do you read a char in java?
What is json parser in java?
What is replacefirst in java?
What is the difference between a vector & an array list?
What all methods are used to prevent thread execution ?
What is difference between wait and notify in java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is a finally block? Is there a case when finally will not execute?
Can we declare an array without size in java?
What invokes a thread's run() method in java programming?
Why is the type for real numbers called double?
What is the difference between equals() and?
Which are the two subclasses under exception class?
Why array is used in java?
What is javac in java?