how to create thread in java?

Answer Posted / bijoy kumar baral

There is two ways for creating Thread in Java:
1.Extending Thread class

2.Implementing Runnable Interface

Second one is much more benificial than 1st one,as we can
able to avoid the overriden methods.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class oop?

592


What is property in oops?

565


What is constructor in oop?

586


What is object in oops?

612


What are functions in oop?

582






What is overriding vs overloading?

580


Can abstract class have normal methods?

610


When not to use object oriented programming?

567


What is the advantage of oop over procedural language?

623


Which language is pure oop?

545


What is encapsulation in oop?

601


What is stream in oop?

837


What is encapsulation and abstraction? How are they implemented in C++?

633


What does no cap mean?

590


What is the importance of oop?

607