About Question enthuware.ocpjp.v8.-2-.1124 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
__JJ__
Posts: 125
Joined: Thu Jul 05, 2018 6:44 pm
Contact:

About Question enthuware.ocpjp.v8.-2-.1124 :

Post by __JJ__ »

ExecutorService allows you to execute a Callable.
Hi admin,
Sorry, ExecutorService allows you to submit a Callable. Of course, execute in common language means the same thing, but the method in Executor is execute, whereas the method in ExecutorService is submit, and the method in SES is schedule.

admin
Site Admin
Posts: 10398
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.-2-.1124 :

Post by admin »

I think it is clear from the context that the explanation is talking their difference wrt Runnable and Callable. For example, when we say "run a class", it doesn't mean the class has a method named run.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests