Currently browsing author

Krishna Srinivasan, Page 110

java-ee-thumbnail

Error Pages in JSP 2.0

We can configure error pages in jsp and servlets to direct the control to a custom error page, showing a friendly error …

java-thumbnail

Volatile keyword in Java

This tips explains the use of volatile keyword in Java. The keyword volatile is used in the multithreaded environment. also read: Java …

java-thumbnail

How to use Enum in Switch?

Enums introduced in Java 5.0 (Read: New features in Java 5.0) allows switching to be done based on the enums values. It is …

java-thumbnail

Adding methods to an Enum

Enums introduced in Java 5.0 are just compiled java classes with some extra behavior. So you can basically do whatever you can …