MethodType is a Class that belongs to java.lang package. This class consists of various types of methods that help in most of cases to find… Read More
Tag Archives: Java-lang package
java.lang.management.ThreadInfo class contains methods to get information about a thread. This information includes: Thread ID Thread Name State of the Thread Stack trace of the… Read More
This class is used to bind together the supplied class and class file bytes in a single ClassDefinition object. These class provide methods to extract… Read More
Before java 8 the compiler used to take it from the java.util package. But later since the use of date and time became important in… Read More
java.lang.ManagementPermission Class contains abstract methods to determine access to a system resource. Every object has some name. Most permission object also has some “actions” associated… Read More
When we create an object in Java, an object isn’t soft by default. To create a Soft Reference Object, we must explicitly specify this to… Read More
This error is thrown by TreeSet because TreeSet is used to store elements in sorted order and if the specified element cannot be compared with… Read More
Classes and Objects are basic concepts of Object-Oriented Programming which revolve around the real-life entities. A class is a user-defined blueprint or prototype from which… Read More
The getAnnotation() method of java.lang.Package class is used to get the annotation of the specified annotation type, if such an annotation is present in this… Read More
The isAnnotationPresent() method of java.lang.Package class is used to check if an annotation of the specified annotation type is present in this class. The method… Read More
The getDeclaredAnnotation() method of java.lang.Package class is used to get the declared annotation of the specified declared annotation type, if such an declared annotation is… Read More
The getAnnotations() method of java.lang.Package class is used to get the annotations present in this class. The method returns an array of annotations present. Syntax:… Read More
The getAnnotationsByType() method of java.lang.Package class is used to get the annotations of the specified annotation type present in this class. The method returns an… Read More
The getDeclaredAnnotations() method of java.lang.Package class is used to get the declared annotations present in this class. The method returns an array of declared annotations… Read More
The getDeclaredAnnotationsByType() method of java.lang.Package class is used to get the declared annotations of the specified declared annotation type present in this class. The method… Read More