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

Do I have to use jsps with my application?

1070


What class is used to create Server side object ?

2316


difference between  ejb,struts,hibernate,spring and jsp

2924


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

3061


what is handle?

2421


Why do I get a duplicate name error when loading a jar file?

1201


Which are the different segments of memory?

1149


What you mean by COM and DCOM?

1120


What is the difference between ear, jar and war file?

1188


What is a class loader? What are the different class loaders used by jvm?

1159


Why use POJO when I can use hashmap

2716


Name the eight primitive java types.

1202


What is an abstract method?

1123


What is the difference between system.out ,system.err and system.in?

1163


what are the advantages of JTA over JTS?

2288