Question d’entretien chez Huawei Technologies

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