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

Can you give me a simple example of using the requiredif validator rule?

1183


What modifiers may be used with an interface declaration?

1186


Brief description about local interfaces?

1331


Why a component architecture for the java platform?

1313


What are the pros and cons of detached objects?

1039


What is the highest-level event class of the event-delegation model?

1160


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

1260


Explain the advantages and disadvantages of detached objects.

1076


Where can I ask questions and make suggestions about seam?

1112


How can I scroll through list of pages like the search results in google?

1012


What you mean by COM and DCOM?

1114


Why use a datasource when you can directly specify a connection details?

1078


What is a sessionfactory? Is it a thread-safe object?

1262


How can I avoid validating a form before data is entered?

1047


Why is string immutable in java?

1144