Final answer:
The objective of the lab is to write a program that converts time from 24-hour to 12-hour notation and handles exceptions, such as illegal time inputs.
Step-by-step explanation:
The topic of this question is Exception Handling, specifically in the context of a program that converts time from 24-hour notation to 12-hour notation. The objective of the lab is to write a program that can handle exceptions, such as illegal time inputs. In this case, the program should throw and handle a TimeFormatException when the user enters an illegal time.
To achieve this, you would need to define an exception class called TimeFormatException. When the user enters an illegal time, such as 10:65, your program should throw the TimeFormatException and handle it accordingly. By using exception handling, you can ensure that the program detects and handles errors in the time input.