Question 51 · 52 in bank
Given: Path p1 = Path.of("/home"); Path p2 = Path.of("../data"); System.out.println(p1.resolve(p2)); System.out.println(p2.resolve(p1)); What is the result?
Show answer
Answer: C
Java SE 17 Developer52 questions across 6 pages are complete and free, with no account or card.
52 questions in this bank
Free access · progress saved on this device
Given: Path p1 = Path.of("/home"); Path p2 = Path.of("../data"); System.out.println(p1.resolve(p2)); System.out.println(p2.resolve(p1)); What is the result?
Answer: C
Given the code fragment: LocalDate now = LocalDate.now(); LocalDate this_labourDay = LocalDate.of(2021, Month.MAY, 1); LocalDate next_labourDay = this_labourDay.plusYears(1); LocalDate add_week = next_labourDay.plusDays(7); Period p = now.until(add_week); System.out.println(p); Assume LocalDate.now() returns 17th Aug 2021. What is the result?
Answer: B
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
1Z0-829 practice, question 51. 52 questions available.
Version 1.0.0. How we source questions