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
Write a program in java to create a doubly linked list containing n nodes.
What is the difference between procedural and object-oriented programs?
Why are the objects immutable in java?
What state does a thread enter when it terminates its processing in java programming?
What is string pooling concept?
Why we use protected in java?
How to perform bubble sort in java?
What are operators and its types?
What does this () mean in constructor chaining concept?
java program with complete 4 oops concepts implemented example
What is console based application in java?
What is a ternary operator in java?
Why java applets are more useful for intranets as compared to internet?
Explain the difference between abstraction and encapsulation.
What is polymorphism and what are the types of it?