Exam 4: More Object Concepts

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

____ involves using one term to indicate diverse meanings, or writing multiple methods with the same name but with different parameter lists.

Free
(Multiple Choice)
4.7/5
(75)
Correct Answer:
Verified

B

You can overload methods correctly by providing different parameter lists for methods with the same name.

Free
(True/False)
4.9/5
(96)
Correct Answer:
Verified

True

When they have the same name, variables within ____ of a class override the class's fields.

Free
(Multiple Choice)
4.8/5
(77)
Correct Answer:
Verified

D

Fields declared to be static are not always final .

(True/False)
4.9/5
(88)

When you properly ____ a method, you can call it providing different argument lists, and the appropriate version of the method executes.

(Multiple Choice)
4.7/5
(82)

Explain the java.lang package and why it is important. 

(Essay)
4.9/5
(90)

Within any class or method, the code between a pair of curly braces is called a(n) ____.

(Multiple Choice)
4.9/5
(82)
Match each term with the correct statement below.
Premises:
Data type consisting of a list of values
Responses:
constant
package
Java.time
Correct Answer:
Verified
Premises:
Responses:
Data type consisting of a list of values
constant
(Matching)
4.9/5
(85)
Match each term with the correct statement below.
Premises:
Must be explicitly named in an import statement
Responses:
Java.time
package
overloading
Correct Answer:
Verified
Premises:
Responses:
Must be explicitly named in an import statement
Java.time
(Matching)
4.7/5
(92)

A variable comes into existence, or ____, when you declare it.

(Multiple Choice)
4.8/5
(74)

A(n) ____ is simply a folder that provides a convenient grouping for classes.

(Multiple Choice)
4.8/5
(91)

When you instantiate an object from a class, ____ is reserved for each instance field in the class.

(Multiple Choice)
4.9/5
(70)

You can use the asterisk (*) as a ____, which indicates that it can be replaced by any set of characters.

(Multiple Choice)
4.8/5
(74)

The ____ statement notifies the program that you will be using the data and method names that are part of the imported class or package.

(Multiple Choice)
4.7/5
(67)

Write Java statements that use the now() and of() methods in the LocalDate class.

(Essay)
4.8/5
(86)

  Explain why it is a problem that the highlighted statements are local variables. How could you fix this problem? Explain why it is a problem that the highlighted statements are local variables. How could you fix this problem?

(Essay)
4.8/5
(81)

What does a programmer need to know in order to use two variables with the same name in a class?

(Essay)
4.9/5
(74)

  Explain why the highlighted statements will result in an illegal action. Explain why the highlighted statements will result in an illegal action.

(Essay)
4.7/5
(81)

A method can receive ____ arguments, even if it is defined as needing double arguments.

(Multiple Choice)
4.9/5
(76)

When you overload a Java method, you write multiple methods with a shared name.

(True/False)
4.8/5
(93)
Showing 1 - 20 of 84
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)