All depends on the number of times your program creates or modifies a "String". Strings are never changed in place they can ONLY be created new and that uses some memory. The used memory is never reclaimed until you execute the program the next time or your program ends.