The above example program for Task scheduling of java is not correct. In the above program the main thread(daemon thread) kill first and keep the child thread alive. But due to the non-existence of daemon thread program will not run further after printing once.
View All Comments
| View Tutorial