How many types of thread in java? give the name

Answer Posted / vivek

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 ?    50 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the owner of java?

533


How to use string tokenizer class.

612


What are unchecked exceptions in java?

608


What is off heap memory?

542


What is the difference between choice and list?

588






What is type inference in java8?

573


Can we override the static methods?

562


What is the difference between iterator and enumeration ?

510


What is externalizable?

609


What is binary tree in java?

524


Explain the difference between arraylist and linkedlist in java?

482


What is variable and example?

513


what is the difference between preemptive scheduling and time slicing? : Java thread

527


If a class is declared without any access modifiers, where may the class be accessed in java programming?

649


What is immutability in java?

600