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 are abstract functions?
What are dot operator queries?
Can a final variable be null?
What is api data?
What is a protected void?
How to optimize the javac output?
Where are global variables stored?
What is difference between class and object in java?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Explain about strings in java?
Can we execute a program without main?
What is the purpose of garbage collection in java, and when is it used?
What is the difference between method overriding and overloading?
What is a lambda expression ? What's its use ?
How to make a read-only class in java?