Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Files.walkFileTree  RSS feed

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if it's on the objectives for J8 OCP?  I know it was on J7 OCP.  

TIA.
 
Marshal
Posts: 6349
437
BSD Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Steven, welcome to the Ranch.

Please have a look here (<-- link).

I get an impression by looking to "Java File I/O (NIO.2)" listing, that it might be on the exam.

However, what's the matter? Just learn it. Does it really change somehow significantly your preparation routine?
 
author & internet detective
Posts: 39054
714
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steven,
It is on the upgrade exam (from Java 6 or lower), but not the main OCP 8. I wish they didn't cover it at all.

In new code, you'd likely use Files.walk() and a stream with a filter So there isn't a reason to learn Files.walkTree. But it was on the OCP 7 so I guess that's why they put it on the upgrade exam.

 
Steven Squeers
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne.
There is so much to learn, in so much depth, that if one can economise safely, it is foolish not to do so, I think.
 
Jeanne Boyarsky
author & internet detective
Posts: 39054
714
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Steven Squeers wrote:Thank you Jeanne.
There is so much to learn, in so much depth, that if one can economise safely, it is foolish not to do so, I think.


I agree. Especially on things you are unlikely to use in the real world. I did use Files.walkFileTree a good amount in Java 7. Files.walk is easier to use. (I do a lot of working with Files in my code)
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!