Thread thread = new Thread(){ public void run(){ System.out.println("Thread Running"); } }; thread.start();