Originally posted by amit goel:
hi everybody,
can any class be named java saved with its file name java?
Hi!
I tried to compile a source file , but it did not work.I think java is a reserved
word, Instead try using Java.
The error I got were:
.\java.java:1: Class java already defined in java.java.
public class java
^
error: File .\java.java does not contain nested type java. lang.Object as expect
ed. Please adjust the class path so that the file does not appear in the unnamed
package.
java.java:1: Superclass java. lang.Object of class java not found.
public class java
^
3 errors
It doesnot work it seems amit