What's the convention for java package names without a domain association?

前端 未结 5 1528
刺人心
刺人心 2020-12-07 20:40

I can\'t find a Q/A on SO that answers my exact question, so I figure I\'d post it and see what comes back.

As far as the naming convention goes for Java pa

5条回答
  •  一整个雨季
    2020-12-07 21:17

    If you are going to be distributing a lot of stuff, I would really suggest getting a domain name. Another alternative however would be to use your e-mail: e.g. bob@gmail.com would become com.gmail.bob. This is less common than using domain names but is still done by some and still ensures uniqueness.

提交回复
热议问题