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

Which container method is used to cause a container to be laid out and redisplayed?

1126


Is “abc” a primitive value?

1095


What is the difference between the font and fontmetrics classes?

1131


What is the relationship between an event-listener interface and an event-adapter class?

1111


Difference between DurableSubscription and non- DurableSubscription?

2174


What is the difference between a static and a non-static inner class?

1129


What are the steps to write p-to-p model application?

2460


What modifiers may be used with an inner class that is a member of an outer class?

1050


Explain the difference between object state and behavior?

1027


What are the different approaches to represent an inheritance hierarchy?

1061


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

1019


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

1072


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

2226


What are the call back methods in entity bean?

1052


What is the map interface?

1106