what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / sandeep kumar duey

we can see difference between abstract and inteface class
when we donig thread programming and use Runnable inteface
and Thread class because in case of when we need use
more than one class so in case we use Runnable intface
because we can use more than than one inteface with single
class but can extends only one class .
We also know that java does not support multipal inheritance

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of static keyword in java?

700


Explain access specifiers?

880


Explain all java features with real time examples

1428


What is array length?

699


What is boolean data type in java?

749


How do you compare values in java?

784


When to use runnable interface vs thread class in java?

732


Why is stringbuffer thread safe?

787


Is singleton class thread safe?

737


What are peerless components?

822


Tell us something about set interface.

747


What is difference between static class and normal class?

736


What is the meaning of immutable regarding string?

722


Is null function in java?

760


Where will it be used?

1691