Saved Bookmarks
| 1. |
What Is The Role Of Executorservice In Java? |
|
Answer» EXECUTORSERVICE provides different methods to START and TERMINATE thread. There are two methods execute() and submit() in ExecutorService. Execute() method is used for threads which is RUNNABLE and submit() method is used for Callable threads. ExecutorService provides different methods to start and terminate thread. There are two methods execute() and submit() in ExecutorService. Execute() method is used for threads which is Runnable and submit() method is used for Callable threads. |
|