Which three are advantages of the Java exception mechanism? (Choose three.)
Which three are advantages of the Java exception mechanism? (Choose three.)
The Java exception mechanism provides several advantages. Firstly, it improves the program structure by separating the error handling code from the normal program function, making the code more readable and maintainable. Secondly, it allows the programmer to choose where to handle exceptions, adding flexibility in managing different types of errors. Lastly, Java allows the creation of new exceptions that can be customized to the specific needs of the application, providing a robust way for handling unique error conditions in the program. By leveraging these features, developers can write more robust and maintainable Java applications.
The answer is ACE, there's nothing to argue about. the alternatives are pretty solid and to the point.
ACE is the answer!
standart exceptions can't cover all possible errors => B wrong
why not CDE???
Because D says "MUST be handled in the method in which they occurred" Which is not true. You can throw the exception from that method using throws in the method signature and handle it in the calling method.