fork(1) download
  1. interface Foo {
  2. <F extends Foo> F bar();
  3.  
  4. public static void main(String[] args) {
  5. Foo foo = null;
  6. String baz = foo.bar();
  7. }
  8. }
Runtime error #stdin #stdout #stderr 0.1s 320320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "main" java.lang.NullPointerException
	at Foo.main(Main.java:6)