Collabera interview question

How would you handle an exception from a general error from user input?

Interview Answer

Anonymous

8 Feb 2021

Throw exception and then while loop to keep the scanner from closing.