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 |
Tell us something about an iterator.
How to create a base64 decoder in java8?
What exactly is a .class file?
What is an array and a vector? How they different from each other?
Can we have this () and super () together?
i need to know the site which compiles and run the java program completely in online... thank you for your reply in advance
Consider that class classA, abstract class classB, and final classC have been defined.Which one of the following is correct? 1. classA extends classC implements classB 2. class A extends classB, classC 3. classA extends classB 4. classB implements classC
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?
Is space a char?
Can I declare class as static or private?
What is protected in java?
How do you clear a list in java?