Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2013/10/25
ahmad mohammed
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?