Here we will discuss all the difference between submit() and execute() method.
execute()
|
submit()
|
This method belongs to Executor interface.
|
This method is belongs to ExecutorService interface.
|
This method can only execute Runnable interface task.
|
This method can take either Runnable or Callable task to execute.
|
Its return type is void.
|
It returns a Future Object.
|
Blog Author - Pushkar Khosla,
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.
Java I/O Tutorial


No comments:
Post a Comment