Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 Answers  


Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


Does c++ support multilevel and multiple inheritance?

9 Answers   IBS, Wipro,


What does the keyword "static" mean?

4 Answers   TCS,


Explain the concept of abstracion and encapsulation with one example. What is the difference between them?

3 Answers   PCS,


How to overload new operator in c++

2 Answers  


what is Class in oops with example?

4 Answers   HCL,


What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++

1 Answers   TCS,


Can we have inheritance without polymorphism?

0 Answers  


what is object oriented programming and procedure oriented programming?

3 Answers  


Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


When will a constructor executed?

5 Answers   TCS,


Categories