fork(2) download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. try {
  9. long[][] ary = new long[Integer.MAX_VALUE][Integer.MAX_VALUE];
  10. } catch (OutOfMemoryError e) { System.out.println("OOME!");}
  11. }
  12. }
Success #stdin #stdout 0.06s 380160KB
stdin
Standard input is empty
stdout
OOME!