Given the code fragment:public class Test {public static void main (String [] args) {Path path1 = Paths.get("D:\\sys\\asm\\.\\data\\..\\..\\mfg\\production.log");System.out.println(path1.normalize());System.out.println(path1.getNameCount());What is the result?
A. D:\sys\mfg\production.log
B. D:\\sys\\asm\\.\\data\\. . \\mfg\\production.log
C. D: \\sys\\asm\\.\\data\\. . \\mfg\\production.log
D. D: \sys\mfg\production.log E. D: \\ sys\\asm\\data\\mfg\\production.log
Given the code fragment:public class Test {public static void main (String [] args) {Path path1 = Paths.get("D:\\sys\\as
-
- Site Admin
- Posts: 899559
- Joined: Mon Aug 02, 2021 8:13 am