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 charat java?

546


What are the object and class classes used for?

567


What is a dynamic array in java?

567


What is a ternary operator in java? What is an interface?

553


what is singleton in java?

602






What is passing parameters in java?

529


When can we say that threads are not lightweight process in java?

598


Explain about field hiding in java?

530


What is a bufferedreader?

529


Why is java multithreaded?

542


What mechanism does java use for memory management?

498


What is the benefit of lambda expressions?

497


Which is better arraylist or vector?

579


Which sorting is used in arrays sort in java?

590


Why main method is static in java?

600