Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sybex Java OCP 8 Study Guide Typo Chapter 10 page 543

 
Ranch Hand
Posts: 215
11
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sybex Java OCP 8 Study Guide Typo Chapter 10 page 543
15. Which of the following can fill in the blank to print the month, date, year, hour, minute, and second?
A. rs.getDate("d");
B. rs.getLocalDate("d");
C. rs.getLocalDateTime("d");
D. rs.getLocalTime("d");
E. rs.getTime("d");
F. rs.getTimeStamp("d");

F should be  rs.getTimestamp("d");
with low letter s.
rs.getTimeStamp("d"); with Capital letter S is compile error.

by alinvlad05
 
author & internet detective
Posts: 41967
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
Confirmed and added to the errata. This question is not in the Java 11 or 17 books
 
reply
    Bookmark Topic Watch Topic
  • New Topic