is class name important ?

Hi all,

I have two simple classes

1. 123_test.java

class 123_test

{

}

2. test_123.java

class test_123

{

}

I can compile second one successfully. But when I compile first one , the error is

123_test.java:1: <identifier> expected

class 123_test

^

1 error

is problem class name starting with a number ?

Thanks,

[587 byte] By [Terry_ba] at [2007-11-27 9:54:43]
# 1
The first character must be a letter. http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#229286
atmguya at 2007-7-13 0:24:39 > top of Java-index,Developer Tools,Java Compiler...
# 2
Thanks...
Terry_ba at 2007-7-13 0:24:39 > top of Java-index,Developer Tools,Java Compiler...
# 3
and, though not enforced, classnames should start with a Capital letter and not contain non-alphanumerical characters.
jwentinga at 2007-7-13 0:24:39 > top of Java-index,Developer Tools,Java Compiler...