• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Sybex Java OCP 8 Study Guide Typo Chapter 10 page 543

 
Ranch Hand
Posts: 216
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: 42162
937
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic