Oracle
1Z0-809 · Question #61
1Z0-809 Question #61: Real Exam Question with Answer & Explanation
The correct answer is B. The method deletes the .class files of the Projects directory only.. See the full explanation below for the reasoning.
Question
Assume that Projects contains subdirectories that contain .class files and is passed as an argument to the recDelete () method when it is invoked. What is the result?
Options
- AThe method deletes all the .class files in the Projects directory and its subdirectories.
- BThe method deletes the .class files of the Projects directory only.
- CThe method executes and does not make any changes to the Projects directory.
- DThe method throws an IOException.
Community Discussion
No community discussion yet for this question.