官术网_书友最值得收藏!

Packages

A package is a logical grouping of related classes, interfaces, enumerations, annotations, and functions. As source files grow larger, it is necessary to group these files into meaningful and distinct collections for various reasons, such as to enhance the maintainability of applications, name conflict prevention, and access control.

A package is created with the package keyword followed by a package name:

package foo

There can be only one package statement per program file. If a package for a program file is not specified, the contents of the file are placed into the default package.

主站蜘蛛池模板: 建水县| 福清市| 大余县| 清水河县| 六枝特区| 民乐县| 沙洋县| 汉源县| 荥经县| 廉江市| 河源市| 崇仁县| 婺源县| 阿坝| 柯坪县| 金昌市| 固阳县| 北辰区| 台东县| 山东| 红原县| 全南县| 武清区| 宣汉县| 孝感市| 新建县| 友谊县| 乐清市| 高邮市| 徐水县| 汉中市| 游戏| 仪陇县| 凌海市| 汾阳市| 阜宁县| 乐都县| 肥城市| 界首市| 阿瓦提县| 大厂|