Here you can find the source of execute(Runnable command)
public static void execute(Runnable command)
//package com.java2s; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Main { private static ExecutorService executorService = Executors.newSingleThreadExecutor(); public static void execute(Runnable command) { executorService.execute(command); }//from www . j a v a 2s . co m }