how to create thread in java?

Answer Posted / vamsikrishna

we can do it in two ways.
one is by extending thread class and other is by
implementing Runnable interface.
here the later one is good because when we are going for
mutiple inheritance only interface helps us

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are benefits of oop?

639


Why interface is used?

555


What is encapsulation selenium?

554


Why it is called runtime polymorphism?

577


What is cohesion in oop?

624






What is the real time example of encapsulation?

600


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1639


What does enum stand for?

617


c++ program to swap the objects of two different classes

1767


What are the types of abstraction?

560


Is data hiding and abstraction same?

570


What is polymorphism programming?

607


What are the 4 pillars of oop?

674


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3557


What is polymorphism explain its types?

688