what is the collable collections in java?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is meant by wrapper classes?
Why does java have different data types for integers and floating-point values?
what is the default value of a variable char?(If not assigned)
What is empty string literal in java?
Can sleep() method causes another thread to sleep?
Why do we need main method to execute a java program?
Hi friends, i am new to java. can you explain how java is secured.
What is multithreading in java?
Can a vector contain heterogenous objects?
what are depricated methods in threads and explain the lifecycle methods
What is the difference between keyword and identifier?
how to execute main()