Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Whats this ?" Watch "Whats this ?" New topic

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 As
It compiles succesfully. But by mistake I typed and to my surprise it compiled. Other than file there is no other file in my classpath named but still it is compiling. I dont understand . Even also if I type 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

Joined: May 26, 2003
Posts: 31683

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.

[OCA 8 book] [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

Joined: Jul 08, 2003
Posts: 24189

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).
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
It is sorta covered in the JavaRanch Style Guide.
subject: Whats this ?