Question: Which language feature ensures that objects implementing the `AutoCloseable` interface are closed when it completes?

  1. try-catch-finally
  2. try-finally-close
  3. try-with-resources
  4. try-catch-close

Answer: The correct answer of the above question is Option C:try-with-resources