title: Using numbers as package names in java
body: <p>I have checked the following posts already:</p>
  
  <p><a href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.2" rel="noreferrer">https://docs.oracle.com/javase/specs/jls/se7/html/jls-6.html#jls-6.2</a></p>
  
  <p>and SO post:</p>
  
  <p><a href="https://stackoverflow.com/questions/12168968/is-this-a-valid-java-package-name">Is this a valid java package name?</a></p>
  
  <p>and</p>
  
  <p><a href="https://stackoverflow.com/questions/292169/what-package-naming-convention-do-you-use-for-personal-hobby-projects-in-java">What package naming convention do you use for personal/hobby projects in Java?</a></p>
  
  <p>I tried creating a package like this:</p>
  
  <pre><code>package 01;
  public class Test
  {
  // ...
  }
  </code></pre>
  
  <p>When I compile I get this:</p>
  
  <pre><code>I:\code&gt;javac 01\Test.java
  01\Test.java:1: error: &lt;identifier&gt; expected
  package 01;
         ^
  1 error
  </code></pre>
  
  <p><strong>I am looking for syntactical correctness of the name not the convention.</strong></p>
  
  <p>Is there a oracle/SUN reference that lists out the syntax for a package or does it follow the same rules as for variable names in java? May be a reference in the Java Language Specification saying package names follow the same rules as variable names.</p>