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

Wrong Answer for question 10 in assessment exam - Sybex OCA Java SE 8 Programmer I  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In question 10 for assessment exam in OCA Oracle Certified Associate Java SE 8 Programmer there is a mistake on question #10.

The answer states that C, D and F are correct. This is not true. Look at this code:



The answer here is clearly G (code wont compile). In the constructor you have not defined a type for variable "name" this will not work.
 
CiaranW Whyte
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind i misread
 
Bartender
Posts: 1184
74
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

Please always mention book name plus author(s) or publication name, would be easier for volunteers to know which book you are referring to. Since you are new and I have this book so edited title. It's from Sybex, authors Jeanne Boyarsky and Scott Selikoff.

did you read the explanation? It has an errata <-- click here to read all erratas of the book.
 
CiaranW Whyte
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ganesh,

I mentioned book in title but in future ill try to provide as much information as possible to help volunteers identify the correct book. I'm also following the errata, there is nothing wrong with this question. The variable "name" is defined at bottom of the code and i overlooked it. Answer in book is correct. Thank you for the swift response.
 
Ganesh Patekar
Bartender
Posts: 1184
74
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

CiaranW Whyte wrote:I'm also following the errata, there is nothing wrong with this question.

I was not talking about question, question is correct but i was talking about errata in explanation on page xli. You can see that on errata page which says

#10 – “Reference one points to g1” should be “Reference one points to g2”



I think you have recently printed book i.e. second printing in that errata was fixed, anyway

Thank you for the swift response.

My pleasure
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!