About Question enthuware.ocpjp.v11.2.3359 :
Posted: Mon Jan 06, 2025 8:37 am
Hi,
The explanation of the 2nd option "Device should implement Closeable and override close() method." is reasonable. Basically is a matter of how the response or question is using "should" and not "may".
But, there is no explanation on why the "Device should implement AutoCloseable..."
Is it because is more generic than Closeable?
Because its close method is not required to be idempotent?
Would you please clarify?
The explanation of the 2nd option "Device should implement Closeable and override close() method." is reasonable. Basically is a matter of how the response or question is using "should" and not "may".
But, there is no explanation on why the "Device should implement AutoCloseable..."
Is it because is more generic than Closeable?
Because its close method is not required to be idempotent?
Would you please clarify?