I presume you are asking this as a question, rather than a recommendation, because you don't usually use the copy constructor for String.
To the API! If you need more explanation please ask again.
If there already is a String containing "Sen" the first statement will create a second String containing "Sen".
If there already is a String containing "Kumar" the second statement will create a new String, then replace it by the pre-existing String "Kumar." *************************************************************************** Actually there already is a String "Kumar". You have written it in the code.
Post by:autobot
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
a bit of art, as a gift, the permaculture playing cards