If you try to perform the following line of code:
ArrayList.add (new Object());
A null-pointer exception is thrown. Now of course,
since the add method is not static, this method is
bound to fail. However, the interpreter should
probably return some meaningful message to indicate
this is the situation, rather than throwing
the "Unknown error" message.