Model N Mock Interview

Master 28 Model N interview questions covering revenue cloud solutions, pricing strategies, and enterprise software expertise.

Question 19 of 28

In Java, why shouldn't you use strings to store a password?

  • How to Answer

  • Example Answer

  • Community Answers

Ryan Brunner
Ryan Brunner

Ryan Brunner has over ten years of experience recruiting, interviewing, and hiring candidates in the healthcare, public service, and private manufacturing/distribution industries.

While this may seem like a rudimentary question regarding your knowledge of Java, your interviewer is looking to ideally hear that you understand the principle differences between string and character arrays. Asking about the storage of passwords within a system gives you the opportunity here to point out the differences between the two. In the end, while explaining the differences, be sure to tie it back to the original question on why strings shouldn't be used to store passwords.