+ 1
What is difference between Executor.submit() and Executer.execute() method ?
What is difference between Executor.submit() and Executer.execute() method ?
1 Answer
+ 2
The difference is that Executer.execute() starts the task without any further ado whereas Executer.submit() return a "Future" object to manage the task .
with that "Future" you can cancel the task prematurely with cancel method or wait for the task to finish executing with get method.
you should get a book about java threads/ concurrency to better understand it or use oracle javadoc its free and explain all.