The class java.sql.Timestamp is a subclass of which of the following classes?

Java concepts and its programming MCQs for PPSC, FPSC, NTS, and Pakistan government job tests. Select an option below, then read the explanation.

PPSCFPSCNTSPakistan govt jobs
Subject
Java concepts and its programmingsoftware-engineering-mcqs › java-concepts-and-its-programming
Published
18 Apr 2019
Last updated
28 May 2026

Browse all Java concepts and its programming MCQs

Choose the correct answer

Explanation

The java.sql.Timestamp class extends java.util.Date, adding nanosecond precision to the date and time representation. Options B and C refer to other time-related classes, but they are not superclasses of Timestamp. Therefore, the correct answer is java.util.Date.

PakQuizHub — free MCQs and past papers for Pakistan government job tests. Content is for educational practice only.