Home  >  Article  >  Java  >  Java class library is contained in packages

Java class library is contained in packages

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-10-02 06:39:291046browse
  • Java provides several standard classes available to all programs.

  • This collection of classes is called the Java API (Application Programming Interface).

  • The Java API is organized into packages.

  • The main package in the package hierarchy is java.

  • There are several subpackages that descend from the java package.

Biblioteca de classes Java fica contida em pacotes

  • Since the beginning of the book, the java.lang package has been used.

  • The java.lang package contains several classes, including the System class, used to display output with println().

  • The java.lang package is unique because it is automatically imported into all Java programs.

  • Therefore, it was not necessary to import java.lang in the previous examples.
    Other packages need to be imported explicitly.

  • Various packages will be examined in the following chapters.

Useful links:
https://docs.oracle.com/javase/8/docs/api/java/lang/package-summary.html
https://docs.oracle.com/javase/8/docs/api/java/net/package-summary.html
https://docs.oracle.com/javase/8/docs/api/java/net/package-summary.html
https://docs.oracle.com/javase/8/docs/api/java/applet/package-summary.html
https://docs.oracle.com/javase/8/docs/api/java/awt/package-summary.html

The above is the detailed content of Java class library is contained in packages. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Implementing interfacesNext article:Implementing interfaces