Reasons for using Multithreading in Java:
- When a Java program starts, the Java Virtual Machine creates the main thread and calls the program's main() method within that thread.
- use to execute the multiple loops in one window.
- Threads are use to perform asynchronous or background processing.
Java application contains contain at least one thread, that is called main thread which executes your main method. There are more threads used by JVM e.g. daemon threads which do garbage collections and some other housekeeping works. As an application developer, you can also add new user threads to make your application faster and more efficient.