Pergunta de entrevista da empresa Huawei Technologies

How can we use try-with-resources in Java?