Showing posts with label java.lang.ExceptionInInitializerError. Show all posts
Showing posts with label java.lang.ExceptionInInitializerError. Show all posts

Friday, January 11, 2013

Exception in thread "main" 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: