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 is the synonym of string?
Explain the difference between transient and volatile in java?
What is the static keyword?
What is main in java?
What is the use of keywords in java?
What is the difference between private & public & friendly classes?
What is string english?
Which oo concept is achieved by using overloading and overriding?
Why does abstract class have constructor?
Is age a discrete variable?
What is nextint java?
How would you format a date in java? I.e. In the ddmmyyy format?
What should I import for arraylist in java?
What is the different between get and post?
What is callablestatement? How you can call stored procedure to pass in parameter?