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 |
Explain runtime exceptions?
why interfaces are faster than abstract classes?
Can a static member function access member variable of an object?
What is anti pattern in java?
Is void a keyword in java?
What is the inheritance?
Can we have multiple catch block for a try block?
Explain the difference between the public, private, final, protected, and default modifiers?
What is natural ordering in java?
Where are register variables stored?
What is the difference between array list and vector in java?
What is hashing principle in java?