It throws an InputMismatchException. Frame the concept in practical terms so you can explain it during interview discussion.
When 'nextInt()' is used and the input is non-numeric, Java throws an InputMismatchException. This can occur in an e-commerce app when a user inputs text instead of a number for quantity. You can handle this with a try-catch block to prompt the user again.