Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAVA is not 100% casesensitive how???

 
kotha vijaybabu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Chandra Sagi
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Naidu YPVS
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Henry Wong
author
Marshal
Pie
Posts: 21500
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody else think case sensitive languages are just silly? Was there a strong outcry from develoeprs to support

in one class?
 
Joni Salonen
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder how they would have named the class Class if Java wasn't case sensitive
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic