java.lang.ref.Reference Class is an abstract base class for reference object. This class contains methods used to get information about the reference objects. This class is… Read More
Tag Archives: java-lang-reflect-package
When we create an object in Java, an object is strong by default. To create a Phantom Reference Object, we must explicitly specify this to… Read More
java.lang.reflect.Method class provides necessary details about one method on a certain category or interface and provides access for the same. The reflected method could also… Read More
When we create an object in Java, an object isn’t weak by default. To create a Weak Reference Object, we must explicitly specify this to… Read More
The ability of the software to analyze itself is known as Reflection. This is provided by the java.lang.reflect package and elements in Class .Field serves… Read More
The java.lang.reflect.Modifier class contains methods used to get information about class, member and method access modifiers. The modifiers are represented as int value with set… Read More
A ReferenceQueue is a simple data structure onto which the garbage collector places reference objects when the reference field is cleared (set to null). You… Read More
java.lang.reflect.Constructor class is used to manage the constructor metadata like the name of the constructors, parameter types of constructors, and access modifiers of the constructors.… Read More
java.lang.reflect.Parameter class provides Information about method parameters, including their name and modifiers. It also provides an alternate means of obtaining attributes for the parameter. Some… Read More
A proxy class is present in java.lang package. A proxy class has certain methods which are used for creating dynamic proxy classes and instances, and… Read More
ReflectPermission class extends BasicPermission class. It is a “named” permission i.e it contains a name but no action. It may implement actions on top of… Read More
The getAnnotations() method of java.lang.AnnotatedElement class is used to get the annotations present in the class implementing this interface. The method returns an array of… Read More
The getAnnotationsByType() method of java.lang.AnnotatedElement class is used to get the annotations of the specified annotation type present in the class implementing this interface. The… Read More
The getDeclaredAnnotations() method of java.lang.AnnotatedElement class is used to get the declared annotations present in the class implementing this interface. The method returns an array… Read More
The getDeclaredAnnotations() method of java.lang.AnnotatedElement class is used to get the declared annotations of the specified declared annotation type present in the class implementing this… Read More