Reference Data Types in Java


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

question 1 of 3

Java variables can represent two types of data: _____ and _____.

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. The new operator allocates memory to hold an array or class object's data and the _____ is called to initialize the data to valid values.

2. Java doesn't allow primitive data type variables to be assigned to/from reference type variables because _____.

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

In order to check your understanding of reference data types in Java, use the worksheet and quiz. For the quiz, you need to be familiar with Java variables and Java programs.

Quiz & Worksheet Goals

Take the quiz any time, assessing your understanding of the following topics:

  • Type of method that should be used in the rare case you make a separate copy of the object referred to by a reference variable
  • Two types of data that Java variables can represent
  • Something called to initialize the data to valid values
  • Executing Java codes
  • Output from a Java program

Skills Practiced

  • Reading comprehension - ensure that you pick out the most important information from the lesson on Java reference types
  • Information recall - access the knowledge you have gained about the two types of data that Java variables can represent
  • Interpreting information - verify that you can read information about something called to initialize the data to valid values and interpret it correctly

Additional Learning

Expand your knowledge of these Java topics by using the lesson called Reference Data Types in Java. In this lesson, you'll get to review more topics like:

  • Examples of different data types
  • How assigning data types is carried out
  • Characteristics of arrays and objects