General Motors (GM) Interview Question

why use char array for storing password instead of strings

Interview Answers

Anonymous

Feb 25, 2016

A string is an array of characters.

1

Anonymous

May 13, 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