18
Nhiệm vụ
Java Collections,  mức độbài học
Đã khóa
Exception factory
Create an exception factory class that has a single static method that returns the required exception. This method should accept one enum argument. Do the following for each of these enums: * ApplicationExceptionMessage: return an Exception; * DatabaseExceptionMessage: return a RuntimeException.
10
Nhiệm vụ
Java Collections,  mức độbài học
Đã khóa
Improvements in Java 7 (multiple exceptions)
Rewrite the implementations of the Solution class's methods. Use Java 7's new ability to handle multiple exceptions.
10
Nhiệm vụ
Java Collections,  mức độbài học
Đã khóa
Improvements in Java 7 (try-with-resources)
Rewrite the implementations of the Solution class's methods. Use the new exception handling feature (try-with-resources) that has been added to Java 7.