-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: core-libs
Process has a new `close()` method and supports `AutoCloseable`.
Closing a process ensures that it has terminated and its streams and underlying resources are released.
When used with try-with-resources, the process and its streams are closed when the try-with-resource block exits.
See `java.lang.Process` for details and examples.
Closing a process ensures that it has terminated and its streams and underlying resources are released.
When used with try-with-resources, the process and its streams are closed when the try-with-resource block exits.
See `java.lang.Process` for details and examples.