class Example{ static Object obj; // not initialized, defaults to null public static void main(String[] args) { obj.hashCode(); }}
Standard input is empty
Standard output is empty
Exception in thread "main" java.lang.NullPointerException at Example.main(Main.java:6)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!