Java: Date Data Type

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

The Date in Java is not only a data type but a _____.

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Examine the following code. What value will todayM have?

2. Examine the following code. What is the value of the Month of the Date?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

This quiz/worksheet set will help you put your knowledge of the Date function in Java to the test. Questions will focus on specific commands and what Date is.

Quiz & Worksheet Goals

This assessment will review your knowledge of:

  • What Date is in Java
  • Which Java method will return the day of the month
  • Correctly reading Java syntax

Skills Practiced

  • Defining key concepts - ensure that you can accurately define main phrases, such as Date in the context of Java
  • Information recall - access the knowledge you've gained regarding how to convert a Java Date to a String
  • Knowledge application - use your knowledge to answer questions about what a specific piece of code in Java would do

Additional Learning

If you would still like to know more about this facet of Java, review the lesson titled Java: Date Data Type. It will help you understand things such as:

  • How to bring a Java Date package into your program
  • What the new keyword does in Java
  • How Java stores the integer value of a year
Support