how to create thread in java?

Answers were Sorted based on User's Feedback



how to create thread in java?..

Answer / manju

Thread can be created by

1. Extending Thread Class
2. implementing Runnable interface

Is This Answer Correct ?    1 Yes 0 No

how to create thread in java?..

Answer / chiranjeevi

threads are created in two ways
1.extending threadclass
2.runnable interface

Is This Answer Correct ?    0 Yes 0 No

how to create thread in java?..

Answer / teja

We r creating threads in java by extending d thread class
or by implementing runnable interface.
Syntax for creaton of thread is:
Thread var=new Thread(Runnableobject,"Stringname");

Is This Answer Correct ?    0 Yes 0 No

how to create thread in java?..

Answer / ravi gandhi

threads are created in two ways
1.implementing Runnable interface
2.Extending Thread Class

in thees two ways implements runnable interface is better
option because it supports multilevle thread cocept

Is This Answer Correct ?    0 Yes 0 No

how to create thread in java?..

Answer / javamasque

Threads are created in three ways
1. Sub-class Thread: Create sub-class of java.lang.Thread class
2. Runnable object: Implementing java.lang.Runnable interface.
3. Callable object: Implementing java.lang.Callable interface.

Is This Answer Correct ?    0 Yes 0 No

how to create thread in java?..

Answer / hari

It can also be created in number of ways.
1.Extended threadclass
2.Running thread

Is This Answer Correct ?    2 Yes 3 No

how to create thread in java?..

Answer / solanki

It was created by extended from Thread class
and also we can create from interface thred

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More OOPS Interview Questions

What is the difference between the c++ & java?

2 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


What normal C constructs work differently in C++?

2 Answers  


Why it is called runtime polymorphism?

0 Answers  


What are main features of oop?

0 Answers  






what is the difference between a package and a software?

3 Answers  


What is meant by oops concept?

0 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


namespace is working on which compiler?

3 Answers  


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

0 Answers   HCL,


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


What is polymorphism give a real life example?

0 Answers  


Categories