Capgemini interview question

string is immuetable string is immuetable, oops concept, spring boot annotation