nerdexam
Oracle

1Z0-804 · Question #149

1Z0-804 Question #149: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #149. The question stem and answer options stay visible for context.

Question

Given the code fragment: Which two try statements, when inserted at line ***, enable you to print files with the extensions.java, .htm, and.jar.

Exhibit

1Z0-804 question #149 exhibit

Options

  • Atry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,"*.{java,htm,jar}")){
  • Btry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,"*. [java,htm,jar]")) {
  • Ctry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,".{java,htm*,jar*}")) {
  • Dtry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,"**.{java,htm,jar}")) {

Unlock 1Z0-804 to see the answer

You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-804 Practice