Tag Archives: tutorial

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

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