This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin Cookbook and have Ken Kousen on-line!
See this thread for details.
Win a copy of Kotlin Cookbook this week in the Kotlin 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:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Possible Errata Answers Review Questions Chapter 2 or Chapter 2 Itself (OCP Study Guide Java 11)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This topic is about Oracle Certified Professional Java SE 11 Programmer 1 Study Guide (ISBN: 978-1-119-58470-4), by Jeanne Boyarksy and Scott Selikoff.
I found possible errata in the answers of the review question of chapter 2 or chapter 2 itself. On page 53 table 2.3 states that the default initialization value of a long is 0. However, the answer of a review question about this topic (question 8) on page 495 states that the default initialization value is 0L. Should it be 0 or 0L?

Greetings,
Christiaan
 
Marshal
Posts: 67050
255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I think 0L is more correct. Try here fo known eerrata; I think you are the first person to notice that.
 
author & internet detective
Posts: 39771
797
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While 0L, is technically more correct, the table is intended to show a concept and not distract with types.
 
Marshal
Posts: 24853
60
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could say "zero" instead of "0", I think that would prevent the issue of 0 versus 0L from arising in people's minds.
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
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!