About Question enthuware.ocpjp.v7.2.1583 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
maurezen
Posts: 3
Joined: Wed Sep 24, 2014 7:04 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1583 :

Post by maurezen »

What jdk is this question based upon?

I have 1.7.0_60 and under it there is File[] listRoots() method in FileSystem (which is also referenced in File#listRoots). There is no FileSystem#getRootDirectories() method, and yet the answer variant using it is listed as correct.

In case it is relevant, I use question bank com.enthuware.ets.ocp-jp-ii.v7 version 1.76.

admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1583 :

Post by admin »

If you like our products and services, please help us by posting your review here.

henrid
Posts: 31
Joined: Sun Oct 13, 2013 1:20 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1583 :

Post by henrid »

Funny:
FileSystem.getRootDirectories() returns [ C:\, D:\, E:\ ]
File.listRoots() returns { C:\, D:\ }
(E:\ is my DVD drive)

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests