Here you can find the source of execute(Runnable task)
public static void execute(Runnable task)
//package com.java2s; import java.util.concurrent.*; public class Main { private static ExecutorService executorService; public static void execute(Runnable task) { executorService.submit(task);//from w w w. ja v a 2 s . co m } public static <T> Future<T> execute(Callable<T> task) { return executorService.submit(task); } }