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
Explain the hierarchy of java exception classes?
What is serialversionuid?
What is difference between path and classpath variables?
Java Compiler is stored in JDK, JRE or JVM?
What is the main function in java?
How do you sort in java?
What is the purpose of tostring() method in java?
When is the finally clause of a try-catch-finally statement executed?
Why set do not allow duplicates in java?
What is local variable and instance variable?
What is difference between classpath and path variables in java?
What do you understand by private, protected and public?
What is regex in java?
Why we go for collections in java?
Why is the main method static?