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...

In howmany ways a thread can be created?

Answer Posted / ranganathkini

1. Extending the Thread class
2. Implementing Runnable interface in a class and then
passing its reference to a new Thread.
3. Creating an anonymous class to extend the Thread class.
4. Creating an anonymous class to implement the Runnable
interface and then passing its reference to a new Thread.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the finally clause of a try-catch-finally statement?

1019


Explain about RMI Architecture?

1066


What is the argument type of a programs main() method?

1106


Difference between new operator and class.forname().newinstance()?

1122


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2982


How are the elements of a borderlayout organized?

1096


What value does readline() return when it has reached the end of a file?

1071


Why won’t the jvm terminate when I close all the application windows?

1224


Why is string immutable in java?

1085


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2408


How are commas used in the intialization and iteration parts of a for statement?

1084


What do you know about seam?

1027


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1052


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1189


What is threadfactory?

1076