Tag Archives: java.lang.Package Class

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
The isCompatibleWith() method of java.lang.Package class is used to check if this package’s specification version is compatible with the specified version or not. The method… Read More
The getPackages() method of java.lang.Package class is used to get the Packages defined by the caller’s class loader. The method returns the packages as an… Read More
The toString() method of java.lang.Package class is used to get the String representation of this package instance. The method returns the String representation as a… Read More
The hashCode() method of java.lang.Package class is used to get the hashCode value of this package instance. The method returns the hashCode value as an… Read More
The isSealed(URL) method of java.lang.Package class is used to check if this package is sealed or not, with respect to the specified URL. The method… Read More
The isSealed() method of java.lang.Package class is used to check if this package is sealed or not. The method returns the result as a boolean… Read More
The getName() method of java.lang.Package class is used to get the name of this package. The method returns the name of the package as a… Read More
The getSpecificationVersion() method of java.lang.Package class is used to get the version of the specification of this package. The method returns the specification version of… Read More