2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage
userimage

If any error occurs during the initialization of variables inside the static initializer block of a class then this error would be thrown.Thus we have to understand that this exception is thrown ,when other exceptions arise in the static initializer block.In the error message the original cause for this exception  is also shown.


Prevention

Since this exception arises in consequence of some other exceptions that arises in the static initializer block. We have to ensure that the original cause of this exception is fixed otherwise we cannot be able to deal with this exception in any way.
Answer is