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 meant by tab pans?
What are the two basic ways in which classes that can be run as threads may be defined?
What is the function of character?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is the function of static in java?
What are 3 boolean operators?
What is 16 bits called?
What is the difference between compile-time polymorphism and runtime polymorphism?
Can static method access instance variables ?
Can an interface be defined inside a class?
What is jar?
How can the checkbox class be used to create a radio button?
Why parameters should be passed by reference?
What if static is removed from main method?
In the below example, what will be the output?