B & C are correct ---->The two key modifications that enable the code to print "Open Close" are:
Implement AutoCloseable in the Folder class.
Override the close() method in the Folder class.
B and C correct.
A is wrong cuz both Closeable and AutoCloseable are "interfaces", not classes. Therefore, the "implements" keyword must be used.
D wrong. the fact that it is "final" and doesnt throw anything is fine, but it is missing the "public" keyword. trying to compile without "public" gives this error: "attempting to assign weaker access privileges; was public"
This section is not available anymore. Please use the main Exam Page.1z0-829 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SrinivasJasti
3 months, 3 weeks agoxplorerpj
9 months, 4 weeks agozuluitai
10 months agosupersquax
1 year, 2 months agoTojose
1 year, 3 months ago