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 |
Can a class be a super class and a sub-class at the same time? Give example.
Are arrays immutable in java?
garbate collector(GC)?
Can a class have multiple subclasses?
What are thread local variables?
What are keywords and reserved words in java?
Which are thin and thicK wrapper Class's in Java?
What do you mean by static variable?
What do you mean by platform independence of Java?
What is the blank final variable?
how to handle http request in struts
How do you sort a string in java?