That's correct, except that if you just throw the literal value null it will compile (in other words, you don't need to use a Throwable reference variable,) but fail with a NPE at runtime. However, trying to get the length attribute or an indexed element via the null literal will give you a compile error.
All code in my posts, unless a source is explicitly mentioned, is my own.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com