Home > Java > javaTutorial > body text

Java class library is contained in packages

Mary-Kate Olsen
Release: 2024-10-02 06:39:29
Original
973 people have browsed it
  • 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!

source:dev.to
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!