• 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

Some minor typos in "Answers to Assessment Test" (Java OCA 8 Programmer I Study Guide, Sybex)

 
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Question #1, the third sentence:

a_b defaults to a null value.


Maybe a_b should be $ and null should be 0.

2. Question #10, the third sentence:

Reference one points to g1 and reference two is null.


g1 should be g2.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushfiq Mammadov wrote:1. Question #1, the third sentence:
Maybe a_b should be $ and null should be 0.


Not maybe but definitely Should be: a_b defaults to a 0 value.

Mushfiq Mammadov wrote:2. Question #10, the third sentence:
g1 should be g2.


Spot-on! Should be: Reference one points to g2 and reference two is null.
 
Mushfiq Mammadov
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:

Mushfiq Mammadov wrote:1. Question #1, the third sentence:
Maybe a_b should be $ and null should be 0.


Not maybe but definitely Should be: a_b defaults to a 0 value.


a_b or $ ?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushfiq Mammadov wrote:

Roel De Nijs wrote:

Mushfiq Mammadov wrote:1. Question #1, the third sentence:
Maybe a_b should be $ and null should be 0.


Not maybe but definitely Should be: a_b defaults to a 0 value.


a_b or $ ?


$ of course! Stupid me!

So 2nd attempt Should be: $ defaults to a 0 value.
 
Mushfiq Mammadov
Ranch Hand
Posts: 221
27
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote: So 2nd attempt Should be: $ defaults to a 0 value.


 
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
Agreed on both and logged. Thanks.
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic