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


Please Help Members By Posting Answers For Below Questions

What is a variable declaration?

763


What is the properties class?

824


What is a nonetype?

789


What is a ?

970


What is the function of log?

735


Is empty set an element of empty set?

849


What is sortedset in java?

785


How would you format a date in java? I.e. In the ddmmyyy format?

1128


What restrictions are placed on method overriding in java programming?

768


How do you declare an array that will hold more than 64KB of data?

921


When will we use them?

815


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1087


Is java a security risk?

808


How many arguments can a method have java?

810


What is the difference between jfc & wfc?

808