3 ms·
The Java implementation doesn't use destructors. The AutoCloseable interface only has the one close() method, so for C a callable function would do.
by karmakaze 5y ago
The Java implementation doesn't use destructors. The AutoCloseable interface only has the one close() method, so for C a callable function would do.