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 difference between iterator and enumeration ?
What does the exclamation mark mean in java?
Explain working of call by reference function invoking.
How does indexof work?
What is the right data type to represent a price in java?
What is the purpose of a volatile variable?
Can we define private and protected modifiers for variables in interfaces?
What are the two environment variables that must be set in order to run any java programs?
Explain java thread life cycle.
Why main() method is public, static and void in java ?
What are the different access modifiers available in java?
What isan abstract class and when do you use it?
If a method is declared as protected, where may the method be accessed in java programming?
What is a singleton in genetics?
What is vector capacity in java?