what is daemon thread and which method is used to create the daemon thread? : Java thread
Answer / Brijesh Pal Singh
A Daemon thread is a background thread in Java that runs as part of a program but does not prevent the program from terminating. These threads are useful for performing tasks like garbage collection, disk I/O, and network connections. The setDaemon(boolean) method is used to create a daemon thread by setting the thread's daemon status to true.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain OOPs concept.
Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.
What is arraylist class in java?
Tell me a few examples of final classes defined in Java API?
what is deadlock? : Java thread
What is a map? What are the implementations of map?
what is the constructor and how many types of constructors are used in java?
what is difference between abstract factory and factory design patterns?
what is the reason behind non static method cannot be referenced from a static Context?
What is ph and buffers?
How do you use equal in java?
How can you say HashMap is syncronized?