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 hashing in java?

806


Which of the classes will have more memory allocated?

760


What is the default access specifier for variables and methods of a class?

902


What is thread life cycle in java?

842


what is singleton class in java?

842


Can we inherit a class with private constructor?

826


What are static variables and functions?

867


What is passed by reference and pass by value ?

801


What is the significance of listiterator?

783


What is difference between arraylist and list in java?

846


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

964


What is java in detail?

844


What is the instance of an object?

881


State differences between C and Java?

913


What is arguments in java?

778