Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Maybe error in chapter 3, question #24 (Java OCA 8 Programmer I Study Guide)  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if here is the right place to write this, but let me try it:


On Java OCA 8 Programmer I Study Guide - page 160 - question 24 - 3° chapter has and error:

What is the result of the following?



Perhaps a mistake here in line 7

names.asList()

instead

Arrays.asList(names);



This make the answer different from what is in the book..

 
Thomas Teixeira
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...sorry...i was wrong. my mistake!!! Really sorry!
 
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas Teixeira,

First of all, a warm welcome to CodeRanch!

Thomas Teixeira wrote:I don't know if here is the right place to write this, but let me try it:


It's preferred to create a seperate topic each time you think you encountered a mistake in the study guide. So it's much easier for the author to manage and keep track of the errata items. That's why I moved your posts to a seperate thread. Hope that's ok with you!

Thomas Teixeira wrote:Perhaps a mistake here in line 7

names.asList()

instead

Arrays.asList(names);


As you already discovered yourself, you spotted an intended compiler error in the study guide Expect to see questions like this on the exam. And if you spot the compiler error (like you did here), these questions are probably the easiest ones on the exam: just select "compilation fails" and move on to the next question.

Hope it helps!
Kind regards,
Roel
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!