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 |
What is the old name of java?
What is thread life cycle in java?
Is java a digit method?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is the memory leak in java?
What is a deadlock ?
Can we have any code between try and finally blocks?
What is file class and what is its purpose?
What is data type example?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
Which data type is a class in java?
What is java class writing rules?