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

What are the naming rules for java package names?

青灯夜游
Release: 2020-09-08 13:19:36
Original
22414 people have browsed it

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.发起者名.项目名.模块名*.*.\*
Copy after login

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

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

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

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

Team:

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

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

Company:

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

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

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!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template