- Java.lang - Void
- Java.lang - Throwable
- Java.lang - ThreadLocal
- Java.lang - ThreadGroup
- Java.lang - Thread
- Java.lang - System
- Java.lang - StringBuilder
- Java.lang - StringBuffer
- Java.lang - String
- Java.lang - StrictMath
- Java.lang - StackTraceElement
- Java.lang - Short
- Java.lang - SecurityManager
- Java.lang - RuntimePermission
- Java.lang - Runtime
- Java.lang - ProcessBuilder
- Java.lang - Process
- Java.lang - Package
- Java.lang - Object
- Java.lang - Number
- Java.lang - Math
- Java.lang - Long
- Java.lang - Integer
- Java.lang - InheritableThreadLocal
- Java.lang - Float
- Java.lang - Enum
- Java.lang - Double
- Java.lang - Compiler
- Java.lang - ClassLoader
- Java.lang - Class
- Java.lang - Character.UnicodeBlock
- Java.lang - Character.Subset
- Java.lang - Character
- Java.lang - Byte
- Java.lang - Boolean
- Java.lang - Home
Java.lang Package extras
Java.lang Package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.lang.Package Class
Introduction
The java.lang.Package class contain version information about the implementation and specification of a Java package
Class Declaration
Following is the declaration for java.lang.Package class −
pubpc class Package extends Object implements AnnotatedElement
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method returns this element s annotation for the specified type if such an annotation is present, else null. |
2 | This method returns all annotations present on this element. |
3 | This method returns all annotations that are directly present on this element. |
4 | This method return the title of this package. |
5 | This method returns the name of the organization, vendor or company that provided this implementation. |
6 | This method return the version of this implementation. |
7 | This method return the name of this package. |
8 | This method find a package by name in the callers ClassLoader instance. |
9 | This method get all the packages currently known for the caller s ClassLoader instance. |
10 | This method return the title of the specification that this package implements. |
11 | This method return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package. |
12 | This method returns the version number of the specification that this package implements. |
13 | This method return the hash code computed from the package name. |
14 | This method returns true if an annotation for the specified type is present on this element, else false. |
15 | This method compare this package s specification version with a desired version. |
16 | This method returns true if this package is sealed. |
17 | This method returns true if this package is sealed with respect to the specified code source url. |
18 | This method returns the string representation of this Package. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object