Marker Interfaces in Java 1. Introduction In this quick tutorial, we’ll learn about marker interfaces in Java. 2. Marker Interfaces A marker interface is an interface that has no methods or constants inside it. It provides run-time type information about objects, so the compiler and JVM have additional information about the… Continue Reading java-marker-interfaces

Changing Annotation Parameters At Runtime 1. Overview Annotations, a form of metadata which you can add to Java code. These annotations can be processed at compile time and embedded to class files or can be retained and accessed at runtime using Reflection. In this article, we will discuss how to… Continue Reading java-reflection-change-annotation-params

Formatting with printf() in Java 1. Introduction In this tutorial, we’ll demonstrate different examples of formatting with the printf() method. The method is part of the java.io.PrintStream class and provides String formatting similar to the printf() function in C. 2. Syntax We can use one of the following PrintStream methods to format… Continue Reading java-printstream-printf