Thread in JAVA


A thread in Java is the path followed when executing a program. Thread is created by the Java Virtual Machine (JVM). All Java programs have at least one thread, known as the main thread. Multiple threads can be performed at the same time with different task. It is used to make Java application faster, also thread helps to achieve parallelism in Java programs.