Page 1 of 1

About Question enthuware.ocpjp.v7.2.1535 :

Posted: Mon Sep 07, 2015 10:10 pm
by boyonsea
when I try this

BasicFileAttributeView bfav=Files.getFileAttributeView(p, BasicFileAttributeView.class);

and try to see bfav methods in eclipse (using a dot), I dont see the methods mentioned in the options

I see them for

BasicFileAttributes bfas=Files.readAttributes(p, BasicFileAttributes.class);

Please clarify.

Thanks

Re: About Question enthuware.ocpjp.v7.2.1535 :

Posted: Mon Sep 07, 2015 10:27 pm
by admin
Not sure what you are looking at but the options given in the question are not method names. They are "attributes" supported by BasicFileAttributeView and you may check them out here: http://docs.oracle.com/javase/7/docs/ap ... eView.html

BTW, we do not recommend using an IDE for exam preparation. We recommend the command line.