Dave thanks a lot. Finally, i got it. ( method append()change the object itself, but reference assignment just provide a handler to an object, the object itself not being affected at all.)
hi Shyamsundar i have difficulty on understanding of the first output. could you explain to me? The secod is "doing" and third one is "hello"( string is immutable).