java.lang.String tips and tricks: Best Java Coding Practices 10151
java.lang.String class seems to be very similar to primitives in Java, but this is not the case. String class implements Fly weight design pattern to give better performance. Here are some tips and tricks which can be applied while using String objects in the code in Java
How to set up Liquibase for Database change management 15573
Liquibase is a opensource tool purely written in Java. It has capability of tracking, managing and applying database changes. Here is how to manage database related changes to Enterprise application with Liquibase.
RESTful web-services to get and search Countries 529175
Many web application and desktop applications need to show a list of countries and its states. Here is list of free REST web-services to consume for this purpose.
Tomcat has default timeout of 30 minutes but the default timeout depends on container to container. The default session timeout can be changed by two ways
1. By configuring the timeout into web.xml
2. Programatically
But when to use web.xml configuration and when set it Programatically ?
1. How to convert an array to a list if we are getting a list of Strings from other method or don't know the elements values of array 2. How make a List<String> if we have a some set of predefined string values.