Frage im Vorstellungsgespräch bei Capgemini Engineering

c vs c++, loop to modify string in java is it better or use string builder