---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://catboost.ai/docs/en/concepts/java-reference_catboostmodel__close.md
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# close

```java
public void close()
```

#### Purpose

<!-- source: en/_includes/work_src/reusage-java/java__close-desc.md -->
Implements the `Close` method of the `java.lang.AutoCloseable` interface. Ensures the support of the try-with-resources Java statement.
<!-- endsource: en/_includes/work_src/reusage-java/java__close-desc.md -->


#### Throws

<!-- source: en/_includes/work_src/reusage-java/throws__catboosterror.md -->
`CatBoostError`
<!-- endsource: en/_includes/work_src/reusage-java/throws__catboosterror.md -->

