• 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Sybex OCA Java 8 Study Guide Issue (javase8 programmer1, Boyarski,Selikoff)

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Answer to question 9 on page 220 (Review Questions for chapter 4 "Methods and Encapsulation") state that C is correct answer

Athough Table 4.5 on page 206 says that "The method name MUST have a prefix of set/get/is, followed by the first letter of the property in uppercase, FOLLOWED BY THE REST OF THE PROPERTY NAME.", which means that for property named numberWings we must use "getNumberWings", not "getNumWings" methodName.
Is there errata on page 206 (on table) or page 343 (on aswer) ?

Thanks for answers!
 
Yuri Savchenko
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Text under the table on page 206 also says "Only the method name and property name have naming conventions here."
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic has a great explanation about the same review question and will hopefully clear your doubts.
 
Yuri Savchenko
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Roel! Now it's clear for me.
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!