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


Please Help Members By Posting Answers For Below Questions

Can an interface have a class?

658


Are generics important java?

614


What is the difference between yielding and sleeping?

659


How big is a 32 bit integer?

642


What is java string pool?

644






What are the different tags provided in jstl?

658


What is string args [] in java?

636


What is qualitative variable?

602


What is a buffer in computer?

599


What is string immutability?

638


What is the byte range?

681


Why we override equals() method?

659


What value is a variable of the string type automatically initialized?

699


What is the difference between ArrayList and Vector? which one is better in Java

702


How does hashset works in java?

634