java.lang.String tips and tricks: Best Java Coding Practices 3881
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

continue reading...

How to set up Liquibase for Database change management 7069
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.

continue reading...

Free RESTful web services to Consume and Test 176884
Here are some free RESTful web services to consume. These can be used to learning purpose or use in web applications.

continue reading...

RESTful web-services to get and search Countries 148304
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.

continue reading...

Apache common ToStringBuilder class for Java toString() implementation 1281
Object.toString() method is one of the most useful method for debugging purpose. Here is how to override this method easily and effectively.

continue reading...

Session timeout handling in Java 21719
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 ?

continue reading...

How to convert String array to List 538
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.

continue reading...

Spring MVC Annotation Hibernate 649
How to fix "No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional" exception

continue reading...




© Copyright 2017