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


How to make a non daemon thread as daemon?



How to make a non daemon thread as daemon?..

Answer / Madhumeeta

To change the daemon status of a non-daemon thread in Java, you can call the `setDaemon(true)` method on the Thread object. This method sets the specified thread as a daemon thread.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the old name of java?

1 Answers  


What is thread life cycle in java?

1 Answers  


Is java a digit method?

1 Answers  


What is scope & storage allocation of static, local and register variables? Explain with an example.

1 Answers   IBS,


What is the memory leak in java?

1 Answers  


What is a deadlock ?

5 Answers  


Can we have any code between try and finally blocks?

1 Answers  


What is file class and what is its purpose?

1 Answers  


What is data type example?

1 Answers  


Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?

2 Answers  


Which data type is a class in java?

1 Answers  


What is java class writing rules?

1 Answers   Oracle,


Categories