Answer:
When a program contains multiple exception blocks, they are examined in sequence until a match is found for the type of exception that occurred. This means that the program will check each exception block one by one, starting from the top, and if a match is found between the type of exception and the catch block, the corresponding catch block will be executed. If no match is found, the program will continue to the next exception block or, if there are no more exception blocks, the program will terminate with an unhandled exception error. It is important to order the exception blocks from the most specific to the most general types of exceptions to ensure that the correct catch block is executed for a given exception.
Step-by-step explanation: