hi
your comment
Whether or not the compiler actually uses new or not to create the literal "abcd", I can't say for sure, but my guess would be no, that it instead uses an internal native method to create the String.
....hmmm, you know , i am a beginner....well, it was not known to me, that objects can be created without "new" keywords...All i know , if you want to create any object then you must use "new"
keyword.
anyway, in this case both the strings are pointing to the same string pool
automatically without assignments!!..... which was not possible if i usued "new" keyword.