fork(2) download
  1. class Example
  2. {
  3. static Object obj; // not initialized, defaults to null
  4. public static void main(String[] args)
  5. {
  6. obj.hashCode();
  7. }
  8. }
Runtime error #stdin #stdout #stderr 0.07s 381248KB
stdin
Standard input is empty
stdout

Standard output is empty

stderr
Exception in thread "main" java.lang.NullPointerException
	at Example.main(Main.java:6)