## Uses of Class
java.lang.Package

- Packages that use Package
  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.

- - ### Uses of Package in java.lang

    Methods in java.lang that return Package
    Modifier and Type | Method and Description
    --- | ---
    `protected Package` | ClassLoader.`definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)` Defines a package by name in this `ClassLoader`.
    `Package` | Class.`getPackage()` Gets the package for this class.
    `static Package` | Package.`getPackage(String name)` Find a package by name in the callers `ClassLoader` instance.
    `protected Package` | ClassLoader.`getPackage(String name)` Returns a `Package` that has been defined by this class loader or any of its ancestors.
    `static Package[]` | Package.`getPackages()` Get all the packages currently known for the caller's `ClassLoader` instance.
    `protected Package[]` | ClassLoader.`getPackages()` Returns all of the `Packages` defined by this class loader and its ancestors.

  - ### Uses of Package in java.net

    Methods in java.net that return Package
    Modifier and Type | Method and Description
    --- | ---
    `protected Package` | URLClassLoader.`definePackage(String name, Manifest man, URL url)` Defines a new package by name in this ClassLoader.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.