Here you can find the source of executeFuture(Callable
public static <T> Future<T> executeFuture(Callable<T> callable)
//package com.java2s; //License from project: Apache License import java.util.concurrent.*; public class Main { private static ExecutorService executorThreadPool = Executors.newCachedThreadPool(); public static <T> Future<T> executeFuture(Callable<T> callable) { return executorThreadPool.submit(callable); }//from w w w .j av a 2 s . com }