Which are true about closing resources to guard against a denial of service attack? (Choose two.) A.

Question:

Which are true about closing resources to guard against a denial of service attack? (Choose two.) 

A. The NIO.2 Files.lines() method does not require closing a resource when it is used in a stream pipeline.

B. The NIO.2 Files.lines() method requires closing a resource when it is used in a stream pipeline.

C. When locking a resource using an instance of the concurrent Lock interface, the unlock()
statement should be immediately before the finally block.

D. When locking a resource using an instance of the concurrent Lock interface, the unlock()
statement should be in a finally block.

E. When locking a resource using an instance of the concurrent Lock interface, the unlock()
statement should be immediately after the finally block.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: