General Motors (GM) interview question

why use char array for storing password instead of strings

Interview Answers

Anonymous

25 Feb 2016

A string is an array of characters.

1

Anonymous

13 May 2016

Because Strings are immutable, so if another process dumps the data, no way to get rid of it before garbage collections, with a char array you can wipe the data