Date: 07/06/06 (Java Web) Keywords: no keywords 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 [...] Source: http://blog.taragana.com/index.php/archive/how-to-handle-exceptions-from-static-code-block-in-java/
|