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

Write a program in java to create a doubly linked list containing n nodes.

549


What is the difference between procedural and object-oriented programs?

519


Why are the objects immutable in java?

540


What state does a thread enter when it terminates its processing in java programming?

570


What is string pooling concept?

543






Why we use protected in java?

524


How to perform bubble sort in java?

582


What are operators and its types?

563


What does this () mean in constructor chaining concept?

550


java program with complete 4 oops concepts implemented example

2724


What is console based application in java?

531


What is a ternary operator in java?

526


Why java applets are more useful for intranets as compared to internet?

573


Explain the difference between abstraction and encapsulation.

532


What is polymorphism and what are the types of it?

492