How many types of thread in java? give the name
Answer Posted / shekhar
There are two types of threads in java....
1. User threads: Which are created by the user program
itself. The example is the Main thread etc...
2. Daemon Threads: These threads are generated by the JVM
itself. They are service provider threads which run in the
background and are not used to run the application code.
The example is the Garbage Collection thread.
| Is This Answer Correct ? | 28 Yes | 9 No |
Post New Answer View All Answers
What is the purpose of javac exe?
What does it mean that a class or member is final?
which class is the wait() method defined in? : Java thread
What is the default value of local and global variables?
How hashmap increases its size in java?
What are the important features of Java 9 release?
Can we clone singleton object?
Why is a string immutable?
What is data movement?
what is difference between equals and ==?
What is difference between calling start() and run() method of thread?
Can we print null in java?
Why string is not thread safe?
What is constructor and its types?
Why is String immutable?