-4
I find NullPointerException
to be interesting since there are no explicit pointers in Java. Here is a program that throws such an exception.
class c {
public static void main(String[]s) {
throw new NullPointerException();
}
}
What is the shortest Java program that throws NullPointerException
?
http://stackoverflow.com/questions/25694872/ – numbermaniac – 2017-02-17T06:15:21.277
5We strongly discourage single-language challenges. – Mego – 2017-02-17T11:54:53.487