What does a try-catch block do in Java?
A try-catch block is used to handle exceptions. Code that might throw an exception is placed inside the try block, and the catch block handles the exception if it occurs.
Great! Youâ€™ve got the try-catch block concept down.
Can you explain how multiple catch blocks work with a single try block?