1Z0-829 • Practice Test 31
Free 1Z0-829 practice test — 15 questions with explanations. Set 31. No signup required.
A team is writing a Java 17 class `TemperatureReader` whose constructor opens a hardware sensor. The constructor declares `throws IOException` and may fail after acquiring the sensor. They want the class to be usable in a try-with-resources statement so the sensor is always released. Which change should they make?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.