[Logo]
Forums Register Login
JAVA is not 100% casesensitive how???
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

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

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
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


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.
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.
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.
 
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.
 
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.
"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
Does anybody else think case sensitive languages are just silly? Was there a strong outcry from develoeprs to support

in one class?
I wonder how they would have named the class Class if Java wasn't case sensitive
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 21, 2017 16:28:04.