Home >Java >javaTutorial >What are the naming rules for java package names?

What are the naming rules for java package names?

青灯夜游
青灯夜游Original
2020-09-03 11:07:0122411browse

Java package name naming rules: 1. When completed by multiple people, the package name is "indi. Initiator name. Project name. Module name *.*.\*"; 2. Team development, the package name is " team.Team name.Project name.Module name*.*.*"; 3. Company development, the package name is "com.Company name.Project name.Module name*.*.*", etc.

What are the naming rules for java package names?

Related recommendations: "Java Video Tutorial"

Personal:

indi: Completed by multiple people, the copyright belongs to the initiator

    包名为indi.发起者名.项目名.模块名*.*.\*

pers: Completed alone, public, the copyright mainly belongs to the individual.

    包名为pers.个人名.项目名.模块名*.*.*

priv: Completed alone, non-public, copyright belongs to the individual.

    包名为priv.个人名.项目名.模块名*.*.*

Team:

team: Team projects refer to projects initiated and developed by the team, and the copyright belongs to the team.

    包名为team.团队名.项目名.模块名*.*.*

Company:

com: Initiated by the company, the copyright is owned by the company that initiated the project.

    包名为com.公司名.项目名.模块名*.*.*

For more related programming knowledge, please visit: Programming Learning Website! !

The above is the detailed content of What are the naming rules for java package names?. 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