• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

“Sybex CSG 17”

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
page 1: OCP exam objectives -> handling date, time etc is printed but belongs to chapter 2.

page 62: p.age = 1400L; in stead of p.age = 1400, as age is a "long". It will compile though.
 
author & internet detective
Posts: 41988
911
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

shabloel shanti wrote:page 1: OCP exam objectives -> handling date, time etc is printed but belongs to chapter 2.


The full objective name here is "Handling date, time, text, numeric and boolean values"
This object is covered in multiple chapters. Chapter 1 covers primitives and wrappers. Chapter 2 covers them more. Chapter 4 covers dates. Etc. A number of objectives are covered in multiple chapters. We explain the material in a way to assist learning and retention. By contrast, our practice test book has a one to one mapping between objectives and chapters.

shabloel shanti wrote:page 62: p.age = 1400L; in stead of p.age = 1400, as age is a "long". It will compile though.


This isn't wrong. The "L" is optional. It's very common to omit it.
 
shabloel shanti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

Many thanks for the clarification.

Regards,

Chris
 
shabloel shanti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On second thoughts, I do really believe that page 1 is wrong.
It literally says:
Chapter 1
OCP EXAM OBJECTIVES COVERED IN THIS CHAPTER:

Handling date, time, text
*Use primitves and wrapper classes including Math API, ...etc[/list]

But its not that important, maybe I interpret it wrong.
 
Jeanne Boyarsky
author & internet detective
Posts: 41988
911
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
The book is still correct. Part of that objective is in the chapter. Part of is in other chapters. I think you are reading into this.

Also, that verbiage comes from the series (not us). So a lot of thought has gone into it across many books.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic