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


Please Help Members By Posting Answers For Below Questions

what are abstract functions?

779


What are dot operator queries?

875


Can a final variable be null?

768


What is api data?

784


What is a protected void?

717


How to optimize the javac output?

815


Where are global variables stored?

714


What is difference between class and object in java?

765


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

743


Explain about strings in java?

838


Can we execute a program without main?

764


What is the purpose of garbage collection in java, and when is it used?

806


What is the difference between method overriding and overloading?

847


What is a lambda expression ? What's its use ?

830


How to make a read-only class in java?

830