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 the purpose of abstract class?
what is check p object in java
What is the exact difference in between Unicast and Multicast object?
I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }
Can we sort hashset in java?
What is derived datatype?
Why bytecode is called bytecode?
What is unicode with example?
what is jms? features of jms
Can we define private and protected modifiers for the members in interfaces?
How do you read and print a string in java?
How are Java source code files named?