In this tutorial, we will learn reflection, a feature in Java programming that allows us to inspect and modify classes, methods, etc. In Java, reflection allows us to inspect and manipulate classes, interfaces, constructors, methods, and fields at run time. There is a class in Java named Class that keeps all the information about objects and classes… Continue reading Java Reflection
Category: 6. Java OOP (III)
https://mybackup.infinitycodestudio.com/wp-content/uploads/2022/03/444.jpg
Java enum Strings
In this tutorial, we will learn to learn about string values for enum constants. We will also learn to override default string value for enum constants with the help of examples. Java enum Strings Before you learn about enum strings, make sure to know about Java enum. In Java, we can get the string representation of… Continue reading Java enum Strings
Java enum Constructor
In this Java tutorial, you can learn about enum constructors with the help of a working example. Before you learn about enum constructors, make sure to know about Java enums. In Java, an enum class may include a constructor like a regular class. These enum constructors are either private – accessible within the classor package-private – accessible within… Continue reading Java enum Constructor
Java enums
In this tutorial, we will learn about enums in Java. We will learn to create and use enums and enum classes with the help of examples. In Java, an enum (short for enumeration) is a type that has a fixed set of constant values. We use the enum keyword to declare enums. For example, Here, we have… Continue reading Java enums
Java Singleton Class
dd
Java Anonymous Class
In this tutorial, you will learn about anonymous classes in Java with the help of examples. In Java, a class can contain another class known as nested class. It’s possible to create a nested class without giving any name. A nested class that doesn’t have any name is known as an anonymous class. An anonymous… Continue reading Java Anonymous Class
Nested Static Class
In this tutorial, you will learn about nested static class with the help of examples. You will also learn about how static classes differs from inner classes. As learned in previous tutorials, we can have a class inside another class in Java. Such classes are known as nested classes. In Java, nested classes are of… Continue reading Nested Static Class
Nested and Inner Class
In this tutorial, you will learn about the nested class in Java and its types with the help of examples. In Java, you can define a class within another class. Such class is known as nested class. For example, There are two types of nested classes you can create in Java. Non-static nested class (inner class)… Continue reading Nested and Inner Class