Hyphenated company name in Java packages

后端 未结 5 1590
一生所求
一生所求 2020-12-09 01:54

Say you\'re working on the core module of the foo project for BarBaz Incorporated. Your code fragment might look like this:

package com.barbaz.f         


        
5条回答
  •  春和景丽
    2020-12-09 02:00

    Just drop the hyphen. The package name doesn't need to match the website name at all. It is more important that there's consistency among packages produced by the company so they all use the same base package name.

提交回复
热议问题