How To Handle Exceptions From Static Code Block in Java

How To Handle Exceptions From Static Code Block in Java

Note: This article will be emailed to your friend.

Exception can be handled when thrown in a method by either passing through the Exception or handling it. However in a static code block how can you handle checked exceptions meaningfully?

Normally static blocks are used to execute a code only once globally (for all instances of the class). A popular example is loading the JDBC [...]

Read the rest of this article (314 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro