Given the code fragment: Which two try statements, when inserted at line ***, enable you to
print files with the extensions.java, .htm, and .jar.
A.
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,”*.{java,htm,jar}”)){
B.
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,”*. [java,htm,jar]”)) {
C.
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,”*.{java*,htm*,jar*}”))
{
D.
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir,”**.{java,htm,jar}”)) {
A
A only files, D files and directories