Multiple choice

Which of the following methods in Timestamp Class returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Timestamp object?

  1. getTime()

  2. Time()

  3. getMilliseconds()

  4. getTimeInMilliseconds()

  5. Milliseconds()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct answer because getTime() method is defined in the TimeStamp class in Java and it returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Timestamp object.