interface Foo { <F extends Foo> F bar(); public static void main(String[] args) { Foo foo = null; String baz = foo.bar(); }}
Standard input is empty
Standard output is empty
Exception in thread "main" java.lang.NullPointerException at Foo.main(Main.java:6)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!