About Question enthuware.ocpjp.v7.2.1136 :

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

Moderator: admin

Post Reply
konum85
Posts: 1
Joined: Wed Jan 21, 2015 4:38 pm
Contact:

About Question enthuware.ocpjp.v7.2.1136 :

Post by konum85 »

I was mislead by the option:
"A Callable can return a value but a Runnable cannot" as Callable MUST return a vakue as ther is no void call() method. I was sure that callable return a value but not about the 4th option( A Callable can be used with ExecutorService but a Runnable cannot be.) so I marked the 4th.

Shouldn't be "A Callable rreturns a value but a Runnable doesn't" or something similar?

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

Re: About Question enthuware.ocpjp.v7.2.1136 :

Post by admin »

Your interpretation is valid but remember that such wording is common in the exam.
Here, can is used in the sense that it can (which is true). It doesn't allude to the fact that it must (which is also true) but not referred to here. For example, if someone asks you, what would you use if you have to return a value, you will say, "A Callable, because it can return a value." You don't say, "A Callable, because it must return a value."

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests