class Ideone implements Runnable { public static void main(String[] args) { new Thread(new Ideone()).run(); } public void run() { try { Thread t = new Thread(new Ideone()); t.start(); t.join(); } catch (InterruptedException ex) { System.out.println("won't see me"); } } }
Standard input is empty
Standard output is empty
Exception in thread "Thread-6" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:714) at Ideone.run(Main.java:11) at java.lang.Thread.run(Thread.java:745)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!