Refactor the writeZipEntriesToFile method to use the Java 7 try-with-resources construct.
The program should not have commented code.
12
タスク
Java Multithreading, レベル 1, レッスン 10
ロック未解除
Release resources
Implement the finalize method after first thinking about what exactly it should contain.
Refactor the getUsers method to use the Java 7 try-with-resources construct.
6
タスク
Java Multithreading, レベル 1, レッスン 10
ロック未解除
AutoCloseable and try-with-resources
In the FakeConnection class, implement the AutoCloseable interface so that FakeConnection objects can be used in try-with-resources blocks.
The close() method should display the phrase "Closing database connection..."
In the try block, call the usefulOperation() method and then the unsupportedOpera