aspose file tools*
The moose likes Beginning Java and the fly likes Whats this ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Whats this ?" Watch "Whats this ?" New topic
Author

Whats this ?

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hi there,
I am working on the following -version :

C:\sun>java -version
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

---------------------------------------------------------------------------
Now when I compile my file called DateFunction.java. As
javac DateFunction.java
It compiles succesfully. But by mistake I typed dateFunction.java and to my surprise it compiled. Other than DateFunction.java file there is no other file in my classpath named dateFunction.java but still it is compiling. I dont understand . Even also if I type datefunction.java then also does compile.
please help
thank you,
[ EJFH: Removed a few dozen question marks in subject ]
[ May 03, 2004: Message edited by: Ernest Friedman-Hill ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30965
    
158

Gurpreet,
Windows isn't case sensitive. Compiling occurs within the OS, so Windows picks up the file. If you try to reference the same file from within another Java class, the case will matter.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Moving to Java in General (Beginner.) Followups there, please.


[Jess in Action][AskingGoodQuestions]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Did javac generate a datefunction.class or a DateFunction.class?
In the second case, it will not matter. (but avoid it in ant-build-files).


http://home.arcor.de/hirnstrom/bewerbung
Nick George
Ranch Hand

Joined: Apr 04, 2004
Posts: 815
I wonder what it looked like with the quotation marks


I've heard it takes forever to grow a woman from the ground
 
Consider Paul's rocket mass heater.
 
subject: Whats this ?