Thursday, 20 October 2016

package naming standards

package naming standards 

  1. All letters of word(s) should be lower case letters.
  2. If package name contains one word then first letter starts with lower case letter.
  3. If package name contains more than one word then first letter starts with lower case letter, remaining words also starts with lower case letter.
    1. Tip : Should not give space between the words while naming to package.
  4. Every word should be separate by .(dot) symbol
Examples :
Pre-defined package names:
      • java.lang
      • java.io
      • java.util
      • java.sql
User defined package names:
      • com.nireekshan
      • com.google
      • com.yahoo
Thanks for your time.
Nireekshan