Overloading in Java: Methods & Constructors


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

question 1 of 3

The following code will not compile or run. Why?

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. You can have overloaded methods of the same name and number of parameters, if only the _____ are different.

2. Examine the following code for a class and its constructor. What is the correct method to overload the constructor for a third argument?

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

These study resources will be covering methods and constructors with regard to the concept of overloading in Java. Find out what you know by answering quiz questions on subjects like a code that will not run and overload methods with the same name.

Quiz & Worksheet Goals

Find out how much you know about the following:

  • The class and its conductor
  • An overloaded method that isn't there
  • Adding two values together in an overloaded method

Skills Practiced

  • Information recall - access the knowledge you've gained regarding the class and its conductor
  • Interpreting information - verify that you can read information regarding an overloaded method that doesn't exist and interpret it correctly
  • Making connections - use understanding of the concept of the overloading method and how it's connected to the number of parameters in the code
  • Reading comprehension - ensure that you draw the most important information from the related lesson on methods and constructors with regard to overloading in Java

Additional Learning

Learn more about Java with the lesson entitled Overloading in Java: Methods & Constructors. Use the following bullet points as a guide to help you with your studies:

  • What 'overload' means in Java
  • Constructors that are overloaded
  • How overloaded constructors are used
  • Calling overloaded methods