Here you can find the source of call(Callable
public static <T> T call(Callable<T> callable)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.Callable; public class Main { public static <T> T call(Callable<T> callable) { try {// w w w. j a v a 2s. com return callable.call(); } catch (Exception e) { throw new RuntimeException(e); } } }