What is a Class in Java? - Definition & Examples


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

question 1 of 3

An object is a(n) _____ of a class

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 line of code that creates an object from the class is called a _____

2. Information can be _____ in a Java class, meaning available only to that class

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

For this quiz and worksheet combo, you'll be looking at classes as they are used in Java. Questions will ask you how objects relate to classes as well as the term for classes that share properties and methods from other classes.

Quiz & Worksheet Goals

You will find the subjects listed below in the questions of the quiz:

  • The line of code creating an object from the class
  • Information only available to a given class
  • How objects relate to classes
  • Sharing the properties and methods from other classes

Skills Practiced

  • Defining key concepts - ensure that you can provide the term that describes the way in which objects are related to classes
  • Knowledge application - use what you know to answer a question about creating an object from a Customer class
  • Information recall - remember what you have learned about sharing the properties and methods from classes

Additional Learning

To find out more about programming, head over to the lesson titled, What is a Class in Java? - Definition & Examples. With it, you can check out the following other subjects:

  • Class examples
  • Instantiation
  • Blocks of code in Java