Saturday 26 December 2015

Advantage Of Thread in java

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. 

  1. You can perform many operations  together so that's why your time not waste.
  2. Threads are independent so it is does't any  affect other thread if exception occur.

No comments:

Post a Comment