Win a copy of Python Continuous Integration and Delivery this week in the 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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: 6586
443
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: 39148
724
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: 39148
724
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)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!