| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.net |
Provides the classes for implementing networking applications.
|
| Modifier and Type | Method and Description |
|---|---|
protected Package |
ClassLoader.definePackage(String
Defines a package by name in this
ClassLoader.
|
Package |
Class.getPackage()
Gets the package for this class.
|
protected Package |
ClassLoader.getPackage(String
Returns a
Package that has been defined by this class loader or any of its ancestors.
|
static Package |
Package.getPackage(String
Find a package by name in the callers
ClassLoader instance.
|
protected Package |
ClassLoader.getPackages()
Returns all of the
Packages defined by this class loader and its ancestors.
|
static Package |
Package.getPackages()
Get all the packages currently known for the caller's
ClassLoader instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Package |
URLClassLoader.definePackage(String
Defines a new package by name in this ClassLoader.
|