• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Errata : OCA/OCP Java SE 8 Programmer Practice Tests - Chapter 19

Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 28:

The answer says " The method compiles and returns a Path value that is always equivalent to the input argument." which is not correct. When the path is absolute, it returns the same path back, but if it is not null and relative, it returns absolute path , which may be from the current working directory and would not be equivalent to input argument.


The absolute path is equivalent to input path but the relative one is not.
author & internet detective
Posts: 40354
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right! Looking at the answer, we meant line 4 to have p.isAbsolutePath() rather than !p.isAbsolutePath()!
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic