"Hello".toLowerCase()="hello" "he"+"llo" = "hello" why theres a difference in the answers of both cases? in the first case you say that memory location of "Hello " is different than "hello" so it will give false. But even in second case memory location of "he" is different than "hello"
Hi Ravi. I don't agree with this. If the value of "Hello" is changed then why are Strings immutable. I think "Hello".toLowerCase() creates a new String object hence the address is different (you can check the source code for toLowerCase)
Wonderful job.
Thank you, sir!
very well explained the String Pool concept. Thanks a ton.
nice series i am watching from bottom to top in the list...
thank you so much.....very useful
thank you sir
very good and concise, thank you
Really would like these slides, could you shared them? Or are they stored somewhere? Please
Thanks!
Why String doesn't use scp only
you still need to learn, keep learning dude !
"Hello".toLowerCase()="hello"
"he"+"llo" = "hello"
why theres a difference in the answers of both cases?
in the first case you say that memory location of "Hello " is different than "hello" so it will give false.
But even in second case memory location of "he" is different than "hello"
Hi Ravi. I don't agree with this. If the value of "Hello" is changed then why are Strings immutable. I think "Hello".toLowerCase() creates a new String object hence the address is different (you can check the source code for toLowerCase)