What happens when `parseInt()` is called on a string that does not represent a valid integer?
It throws a `NumberFormatException` indicating that the string cannot be parsed into an integer.
Impressive! You've correctly identified that `parseInt()` throws a `NumberFormatException` for invalid input.
Can you explain how you can handle such an exception using a `try-catch` block in Java?