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 are the main concepts of oops in java?
Which api is provided by java for operations on set of objects?
What is floating data type?
Can we restart a dead thread in java?
When is the finalize() called? What is the purpose of finalization?
Can we create a constructor in abstract class?
What is the use of parse function in java?
What do you mean by static variable?
Why singleton is not thread safe?
What is the difference between class & object?
How do you declare an array in java?
What is a stringbuilder?
What are the procedures?
What is return code?
What does @override mean?