what is the collable collections in java?
Answer Posted / divya
public interface Callable<V>A task that returns a result
and may throw an exception. Implementors define a single
method with no arguments called call.
The Callable interface is similar to Runnable, in that both
are designed for classes whose instances are potentially
executed by another thread. A Runnable, however, does not
return a result and cannot throw a checked exception.
The Executors class contains utility methods to convert
from other common forms to Callable classes.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
Can we inherit a class with private constructor?
Explain about fail fast iterators in java?
Can we have try block without catch block?
What is the abstraction?
What is instance example?
What is the difference between the file and randomaccessfile classes?
Are arrays primitive data types?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is thread start?
What is use of map in java?
Does A Class Inherit The Constructors Of Its Superclass?
Can we use String with switch case?
Which method must be implemented by all threads?
What data type is a string?
How objects of a class are created if no constructor is defined in the class?