• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - page 491

 
Ranch Hand
Posts: 90
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

At the beginning of the section Listing Directory Contents on page 491, it says

...and returned a list of File objects...


To be precise, I think this should be

...and returned an array of File objects...



Kind regards,
Guillaume
 
author & internet detective
Posts: 42135
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed and logged. This one is funny. I have a bad habit of saying "list" when I mean "list or set or array" when I talk to people. Scott wrote the particular line you quoted so I guess we share that habit!

I confused a candidate at an interview with that once. She didn't know the difference between an array and list. So my using the wrong word totally threw her!
 
author
Posts: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Notice we did not use the word "List" (note the uppercase), therefore we were not referring to a specific Collections class.

Like Jeanne, I sometimes use "list" (note the lowercase) to refer to both arrays and List objects. It's probably held over from my more theory-heavy days at Cornell, where lists and arrays were conceptually the same thing, and could be interchangeably. In the context of Java, I can see how this might be confusing. In general, I try to use "List" to refer to the specific collections class.
 
Guillaume Bailly
Ranch Hand
Posts: 90
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Scott,

No problem. Everybody got the point I think. Just thought it might be confusing for some of us.

Regards,
Guillaume
 
reply
    Bookmark Topic Watch Topic
  • New Topic