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

Difference between default and protected access specifiers?

697


What is a protected void?

679


What are the main uses of java?

721


What are the three best choices for a development environment?

833


How do you access command-line arguments within the code?

772






What are the types of arrays in java?

786


What are the differences between checked exception and unchecked exception?

718


How variables are stored in memory?

697


Define Multiprogramming and Multiprocessing in java.

764


What are data types in programming?

729


Why string is immutable with example?

705


Is minecraft java edition free?

805


How do you do math powers in java?

787


Explain features of interfaces in java?

739


Convert a BST into a DLL and DLL to BST in place.

856