First step : string s ="a"; line create a new string object and load JVM.
Object reference is s
Second step : s =s+"b"; line create a other new string Object and load JVM.
Object reference is s. But, first step object isn't a reference.
Garbage Collector remove it.