public <T> ForkJoinTask<T> submit (ForkJoinTask<T> task)

Submits a ForkJoinTask for execution.

Parameters:
task    the task to submit
<T>    the type of the task's result

Returns:  the task

Exceptions:
NullPointerException    if the task is null
RejectedExecutionException    if the task cannot be scheduled for execution