Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between Executor.submit() and Executer.execute() method ?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2013/10/25
ahmad mohammed
by ahmad mohammed , JAVA team lead , edu-tek

The difference is that execute doesn't return a Future, so you can't wait for the completion of theRunnable and get any exception it throws using that.

More Questions Like This