• 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
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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: 6098
418
BSD
  • 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
Marshal
Posts: 38659
677
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
Marshal
Posts: 38659
677
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)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!