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 your platform’s default character encoding?
Is set sorted in java?
how does multithreading take place on a computer with a single cpu? : Java thread
What is the exact difference in between unicast and multicast object? Where we will use?
What is the difference between error and an exception?
Does sprintf add a null terminator?
What is singleton class and how can we make a class singleton?
How do you create an array in java?
What is java autoboxing?
What about interrupt() method of thread class ?
whatis Home interface and Remoteinterface? with example?
what is the messsage u r going to get from an objectoriented programing?
What is difference between filereader and bufferedreader?
What is the purpose of using break in each case of switch statement?
When should the method invokelater() be used?