OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) by Kathy Sierra

OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) by Kathy Sierra

Author:Kathy Sierra
Language: eng
Format: epub
Publisher: McGraw-Hill Education
Published: 2015-09-03T04:00:00+00:00


In what order can the following methods be called if walking the directory tree from x? (Choose all that apply.)

I: preVisitDirectory x

II: preVisitDirectory x/y

III: postVisitDirectory x/y

IV: postVisitDirectory x

V: visitFile x/a

A. I, II, III, IV, V

B. I, II, III, V, IV

C. I, V, II, III, IV

D. I, V, II, IV, III

E. V, I, II, III, IV

F. V, I, II, VI, III

13. Given:

Which code inserted at // CODE HERE would cause the FileVisitor to stop visiting files after it sees the file Test.java?

A. return FileVisitResult.CONTINUE;

B. return FileVisitResult.END;

C. returnFileVisitResult.SKIP_SIBLINGS;

D. return FileVisitResult.SKIP_SUBTREE;

E. return FileVisitResult.TERMINATE;

F. return null;

14. Assume all the files referenced by these paths exist:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.