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
What is a variable declaration?
What is the properties class?
What is a nonetype?
What is a ?
What is the function of log?
Is empty set an element of empty set?
What is sortedset in java?
How would you format a date in java? I.e. In the ddmmyyy format?
What restrictions are placed on method overriding in java programming?
How do you declare an array that will hold more than 64KB of data?
When will we use them?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Is java a security risk?
How many arguments can a method have java?
What is the difference between jfc & wfc?