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

What method is used to create the daemon thread?

Answer Posted / ranganathkini

the Thread.setDaemon() has to be invoked. It takes one
boolean param indicating if the thread is a daemon thread
or not. the setDaemon() has to invoked before the start()
method is called on the thread, else an
IllegalThreadStateException is throw indicating that the
thread is active and its daemon state cannot be altered.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mdb and what is the special feature of that?

1057


Which textcomponent method is used to set a textcomponent to the read-only state?

1138


What are the design considerations while making a choice between using interface and abstract class?

1097


Write a program to show synchronization?

1149


Do I need to import javlang package any time? Why ?

1092


Why is actionform a base class rather than an interface?

1066


What are the different approaches to represent an inheritance hierarchy?

1075


What are the different types of exception?

1037


What is aop(assepct oriented programing)?

1066


Name the eight primitive java types.

1130


What are the oops concept?

1080


What is meant by method chaining?

1150


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4275


What is prototype?

1168


what is the use of State Factories?

2396