Documentation: java.lang.ExceptionInInitializerError
The API says:
Signals that an unexpected exception has occurred in a static initializer. An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static initializer or the initializer for a static variable.
Lets take an example and see what is it exactly: