About Question enthuware.ocpjp.v7.2.1610 :
Posted: Mon May 19, 2014 1:36 am
Path p1 = Paths.get("c:\\company\\records\\customers.dat");
There’s no vast different with;
How this happens?Path p2 = p1.resolveSibling("\\clients.dat")
This will set p2 to c:\clients.dat, which is not what you want.
There’s no vast different with;
but it provides;Path p2 = p1.resolveSibling("clients.dat");
c:\\company\\records\\client.dat