Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Errata - OCA SE 8 Programmer I, Study Guide, page #131

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Oracle Certified Associate Java SE 8 Programmer I Study Guide on page 131. The authors never mentioned what happens if the void add(int index, E element) method of ArrayList is passed an invalid index (e.g. index < 0 or index >= size()) in which case the method throws and IndexOutOfBoundsException.
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While your statement is correct, I'm not sure why you consider it an errata.
 
Magdy Saleh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jeanne,
   Thanks for your reply. You're right, maybe I shouldn't have posted it as an errata but since I'm using your guide to prepare for the exam, I think such piece of info should have been included in it.
Yours,
Magdy Saleh
 
    Bookmark Topic Watch Topic
  • New Topic