Category Archives: Tutorials

Java Tutorials

Annotations in Java

Introduction Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Thus, an annotation leaves the semantics of a … Continue reading

Posted in Tutorials | Tagged , , , , , , , | Leave a comment

Enumerations in Java

Overview Beginning with JDK 5, enumerations were added to the Java language, and they are now an integral and widely used part of Java. In their simplest form, Java enumerations appear similar to enumerations in other languages. However in Java, … Continue reading

Posted in Tutorials | Tagged , , , , , , , | 3 Comments

Property Utility and Resource Bundle Utility

Contents Overview Use of Properties in projects Properties VS ResourceBundle Properties ResourceBundle Benefits of Utilities Utility Flow Common Programming Mistakes PropertyUtil Java Source Code ResourceBundleUtil Java Source Code Proper Implementation PropertyUtil Java Source Code BundleUtil Java Source Code Project Source … Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , , , | Leave a comment

Singleton design pattern in java

Singleton pattern is one of the commonly used design solution. It describes a technique for ensuring that only a single instance of a class is ever created. In essence, the technique takes the following approach: don’t let anyone outside the … Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment