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
Can an interface have a class?
Are generics important java?
What is the difference between yielding and sleeping?
How big is a 32 bit integer?
What is java string pool?
What are the different tags provided in jstl?
What is string args [] in java?
What is qualitative variable?
What is a buffer in computer?
What is string immutability?
What is the byte range?
Why we override equals() method?
What value is a variable of the string type automatically initialized?
What is the difference between ArrayList and Vector? which one is better in Java
How does hashset works in java?