aspose file tools*
The moose likes Beginning Java and the fly likes JAVA  is not  100% casesensitive how??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAVA  is not  100% casesensitive how???" Watch "JAVA  is not  100% casesensitive how???" New topic
Author

JAVA is not 100% casesensitive how???

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi all

i heard dat JAVA is not case sensitive in all cases
i mean dat it is not 100% case sensitive

can anybody tell me in which cases it is like dat plz.....

cheers

vijay

karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
One example i could think of is the following code prints true though you have specified TRUE in the Boolean constructor



The reason for this is the following code in Boolean.java



http://www.skillassert.com


Chandra Sagi
Ranch Hand

Joined: May 05, 2005
Posts: 162
Java is Case Sensitive. Only place where I know its case insensitive is while creating a Boolean object.

Boolean b = new Boolean("true"); here true could be True, TRue.... case insensitive.

Thanks
Chandu
kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi
i agree with u
but i hv another scenario also

i donno it is right or not

u only decide

when v declare floating point nos..,by default they r double rite

if v want to take it as float v need to giv 'f' as subscript rite

but it ll take f and F also(also in the case of long var.s)

am i right

if not clarify me


vijay


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Java -the language- is case sensitive, period. The fact that some constuctor in the Java class libraries chooses to ignore case does not make the language itself case insensitive.


Ping & DNS - updated with new look and Ping home screen widget
Naidu YPVS
Greenhorn

Joined: Jan 03, 2004
Posts: 10
Java IS case-sensitive. The f or F you are saying is different, it doesn't apply to variable names or method names etc. There is even l or L for showing as long, it doesn't mean Java is not case sensitive.


SCJP
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18108
    
  39

Agreed. Generally, when someone says that a language is not case sensitive, they are referring to variable names, method/function names, class names, or reserved keywords.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Originally posted by kotha vijaybabu:
hi
i agree with u
but i hv another scenario also

i donno it is right or not

u only decide

when v declare floating point nos..,by default they r double rite

if v want to take it as float v need to giv 'f' as subscript rite

but it ll take f and F also(also in the case of long var.s)

am i right

if not clarify me


vijay





Are you surfing the web with a hand held device -- why all the text message abbreviations? If you are typing using more than just your thumbs, please spell words out. Thanks.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Jeff Albertson:
...If you are typing using more than just your thumbs, please spell words out. Thanks.

Even if you're typing with thumbs, please take a few seconds to use complete words. Many users here find English difficult enough, and text abbreviations just make it even more frustrating.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

"Naidu YPVS,"

Welcome to JavaRanch!

Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names, with a first and a last name.

You can edit your name here.

Thank you for your prompt attention, and enjoy the ranch!

-Marc
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Does anybody else think case sensitive languages are just silly? Was there a strong outcry from develoeprs to support

in one class?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joni Salonen
Ranch Hand

Joined: Jan 07, 2006
Posts: 53
I wonder how they would have named the class Class if Java wasn't case sensitive
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAVA is not 100% casesensitive how???
 
Similar Threads
Creating one class from another
static members
Triangle Perimeter HELP!!!
'class' or 'interface' expected
Code review required for converting dateformat