CRX-SB to String Conversion

after converting StringBuilder to String shouldn’t the StringBuilder be erased from memory.if yes,then why am i able to print it even after conversion.

No the StringBuilder is not erased from memory after converting it to String. Just a copy of it is made in form of String. It persists in memory till end of the program.

1 Like