About Question enthuware.ocpjp.v7.2.1136 :
Posted: Wed Jan 21, 2015 4:44 pm
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?
"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?