Thread is the path of execution of a program.
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
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!