About Question enthuware.ocpjp.v8.2.1652 :
Posted: Thu Aug 25, 2016 9:46 am
The implementation provided in the explanation will only work for leaves in the directory tree, but not for any directory that contains sub directories, because the count variable is reset every time it enters a new directory.
from the javadoc:
postVisitDirectory(T dir, IOException exc)
Invoked for a directory after entries in the directory, *and all of their descendants,* have been visited.
BTW in general the questions and explanations are usually very good, i am very satisfied , thanks
from the javadoc:
postVisitDirectory(T dir, IOException exc)
Invoked for a directory after entries in the directory, *and all of their descendants,* have been visited.
BTW in general the questions and explanations are usually very good, i am very satisfied , thanks