sb1 == sb2 false
sb3 == sb1 true
I am getting compiler error when i tried following, can any explain why its happening
thanks in advance
Change the line to this.
System.out.println("output is : "+ (st1==st2));
Originally posted by siva prakash:
I am getting compiler error when i tried following, can any explain why its happening...
For future reference, you should start your own thread when asking a new question. Also, it is VERY helpful if you post the exact error message that you get. Otherwise, we are only guessing what the problem is. I don't know about others here at the Ranch, but Most of the time, I won't take the time to compile the code you post. (That's assuming that you provide enough code to compile.) So please post your error messages.