As I study the source code of some open source products, I find code like:
if (a==\"cluser\")
a
is a String variable. Can a St
You can use == if the two strings are interned. String literals are defined to be interned, so if I, say, assign the literal "fred" to a String variable and pass it as a parameter to a method in another class where it's compared to "fred", the == test will be true.
So the specimen code is not certainly defective, just probably so.