A thread is an independent path of execution within a program. Many threads can run concurrently within a program.
Note:- Every thread in Java is created and controlled by the java.lang.Thread class.
Note:- Every thread in Java is created and controlled by the java.lang.Thread class.
- You can perform many operations together so that's why your time not waste.
- Threads are independent so it is does't any affect other thread if exception occur.
No comments:
Post a Comment