fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. private final static int i;
  7.  
  8. public Main() throws InstantiationException
  9. {
  10. throw new InstantiationException("Can't instantiate"); // Don't let the constructor to complete.
  11. }
  12.  
  13. public static void main (String[] args) throws java.lang.Exception
  14. {
  15. System.out.println("It compiled");
  16. }
  17. }
Success #stdin #stdout 0.06s 380224KB
stdin
Standard input is empty
stdout
It compiled