Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Errata Chapter 17 Test 14 (OCA / OCP Practice Tests, Sybex)  RSS feed

 
Charles Lewis
Greenhorn
Posts: 8
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't find the "Errata for OCA / OCP Java SE 8 Programmer Practice Tests" thread.

Chapter 17 Test 14:

As well as HH:mm and hh:mm work:


ouputs :
hh:mm => 02:33
HH:mm => 02:33

It would be different with 15:33 :

ouputs :
hh:mm => 03:33
HH:mm => 15:33
 
Charles Lewis
Greenhorn
Posts: 8
1
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37051
507
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Charles,
This forum is good for posting comments about the "second half" of the book. And the OCA forum for the OCA part of the book. We do have an errata list. It's short because either we wrote an almost perfect book or because the book came out recently so people haven't had time to report many yet .

I don't consider this particular question incorrect though. Oracle is very US focused when it comes to dates/times. Just like they make you learn how daylight savings time works in the United States, they assume a 12 hour clock. And to us 15:33 is called 2:33. The way the rest of the world operates with times is clearer, but here we are. As a result of this, Oracle doesn't ask about H as a formatting option. This also means on the real exam, they wouldn't be likely to give HH:mm as a choice in the first place. Also, on the bright side, this book simulates the style of the real exam where you know how many answers are correct. Which means if you are sitting there with an ambiguous questions about time, you can pick the one that makes sense with a 12 hour clock.

That said I made a note to say "using a 12 hour clock" if we do another edition of this book. And I'm giving you a cow for bringing it up.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!