News

Listing 2 shows a typical XML file header referencing the schema for a Java web application descriptor. This is followed by two entries: <servlet> and <servlet-mapping> .
When an exception occurs in your Java code, you can log it or you can rethrow it -- but don't do both. Here's why you must avoid that exception handling antipattern.