"그게 제가 생각한 것입니다. 하지만 이제 우리는 리소스를 사용하여 시도하는 이 문을 가지고 있습니다."
"젠장. 이 속도로 Java 학습을 끝내지 못할 거야. 모든 것을 이해한 것 같은데, 그러면 네가 나타나!"
"그렇게 초조해하지 마세요. 오일 라인이 파열될 것입니다. 대신 다음 작업을 파악하십시오."
6
과제
Java Multithreading, 레벨 1, 레슨 10
잠금
Refactoring methods
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