How many types of thread in java? give the name

Answer Posted / mishal tripathi

There are two types of threads in JAVA i.e.
1) User Thread :- This thread is created by user program
itself e.g. Main thread.

2) Daemon Thread:- This is JVM itself generated thread.
Example of this thread is Thread Scheduler and Garbage Collector

Is This Answer Correct ?    123 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the high-level thread states? : Java thread

780


Can we extend immutable class?

763


Differences between traditional programming language and object oriented programming language?

830


explain what is transient variable in java?

881


What is the difference between overriding & overloading?

765


Can you write a java class that could be used both as an applet as well as an application?

719


What is meant by distributed application? Why are we using that in our application?

761


How to find the index of the largest number in an arraylist java?

731


What is the difference between stringbuffer and stringbuilder class?

813


How do you include a string in java?

758


Can we override constructor in java?

819


How many types of literals are there in JAVA?

792


What is a text string?

861


Is 0 an irrational number?

822


What do you understand by a Static Variable?

900