Java Package: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
m (Text replacement - ". ----" to ". ----")
m (Text replacement - ". " to ". ")
Line 32: Line 32:
=== 2010 ===
=== 2010 ===
* http://java.sun.com/developer/Books/javaprogramming/JAR/basics
* http://java.sun.com/developer/Books/javaprogramming/JAR/basics
** [[Java Package|JAR file]]s are packaged with the ZIP file format, so you can use them for "ZIP-like" tasks such as [[lossless data compression]], archiving, decompression, and archive unpacking. These are among the most common uses of JAR files, and you can realize many JAR file benefits using only these basic features. Even if you want to take advantage of advanced functionality provided by the [[JAR file format]] such as electronic signing, you'll first need to become familiar with the fundamental operations. To perform basic tasks with [[Java Package|JAR file]]s, you use the [[Java Archive Tool]] provided as part of the [[Java Development Kit]]. Because the [[Java Archive tool]] is invoked by using the [[jar command]], for convenience we'll call it the "Jar tool".  
** [[Java Package|JAR file]]s are packaged with the ZIP file format, so you can use them for "ZIP-like" tasks such as [[lossless data compression]], archiving, decompression, and archive unpacking. These are among the most common uses of JAR files, and you can realize many JAR file benefits using only these basic features. Even if you want to take advantage of advanced functionality provided by the [[JAR file format]] such as electronic signing, you'll first need to become familiar with the fundamental operations. To perform basic tasks with [[Java Package|JAR file]]s, you use the [[Java Archive Tool]] provided as part of the [[Java Development Kit]]. Because the [[Java Archive tool]] is invoked by using the [[jar command]], for convenience we'll call it the "Jar tool".


----
----

Revision as of 12:24, 2 August 2022

A Java Package is a file that can contain related Java Classes, Java Interfaces, Jave Enumerated Types or Java Annotation.



References

2011

  • http://en.wikipedia.org/wiki/Java_package
    • A Java package is a mechanism for organizing Java classes into namespaces similar to the modules of Modula. Java packages can be stored in compressed files called JAR files, allowing classes to download faster as a group rather than one at a time. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality. A package provides a unique namespace for the types it contains. Classes in the same package can access each other's package-access members.

      In general, a package can contain the following kinds of types.

2010