• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic