When to use String, StringBuilder and StringBuffer in Java

Any programming language developer(s) should always tend to write code which is of very less impact on performance management of the application. But, most of the developers fail many a times to achieve the same, especially when working with string related operations (string concatenation) in the code which is to be written. So every java […]

Golden rules about Java Interfaces

Below are some of the golden rules or facts about java interfaces where most of the developers do not make use or may be unaware of the same. 1.  This rule is the very basic one that every developer must know. All the fields of an interface are public, static & final by default. 2. […]

Programmatic Approach of Configuring web.xml

Introduction This tip briefs about configuring the web.xml for any Java/J2ee project using a programmatic approach. Background As a traditional approach, any servlet context and other listeners are configured by making entries in the web.xml file in any Java/J2ee web based application. In contrast to this, the introduction of servlet 3.0 aims to provide a […]

Tips on JUnit

JUnit JUnit in java is nothing but a programming technique or testing framework to perform the unit test for the code written in a new class or a new method added to an existing class in java. JUnit plays a vital role in the test driven development process of an application. The basic motto behind […]