Here you can find the source of sleepForever()
public static void sleepForever()
//package com.java2s; //License from project: Apache License public class Main { public static void sleepForever() { while (true) { try { Thread.sleep(Long.MAX_VALUE); } catch (InterruptedException e) { //nothing }//from w w w.j a v a 2s .co m } } }