Exam 4: More Object Concepts

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

The reference to an object that is passed to any object's nonstatic class method is called the ____.

(Multiple Choice)
4.9/5
(43)

You can use the keyword final with methods or classes.

(True/False)
4.8/5
(29)

Using an example, explain how nested blocks are created.

(Essay)
4.8/5
(34)

Match each term with the correct statement below. -No object associated with them

(Multiple Choice)
4.8/5
(34)

How does an overloaded method become ambiguous, and why might a programmer not be able to see a problem?

(Essay)
4.8/5
(38)

What are the four types of nested classes?

(Essay)
4.9/5
(34)

Object-oriented programmers use the term ____ when a child class contains a field or method that has the same name as one in the parent class.

(Multiple Choice)
4.8/5
(48)

Match each term with the correct statement below. -An illegal action

(Multiple Choice)
4.9/5
(41)

Describe and provide an example of overloading.

(Essay)
4.9/5
(33)

Describe the impact that blocks and methods have on variables with the same name.

(Essay)
4.8/5
(27)

What is a reference and what is the meaning of the keyword this?

(Essay)
4.8/5
(34)

Match each term with the correct statement below. -Must be explicitly named in an import statement

(Multiple Choice)
4.8/5
(35)

public class StudentScores { private int ScoreOne; private int ScoreTwo; private int ScoreThree; ____ ____ ____ ____ ____ } Using the code above, fill in the blank lines provided to create a constructor that will require parameters for the three score data fields. Be sure to include the necessary brackets and semicolons.

(Essay)
4.7/5
(36)

It is a convenience to be able to use one reasonable name for ____ that are functionally identical except for argument types.

(Multiple Choice)
4.7/5
(35)

When working with the GregorianCalendar class, what is the statement that will import the GregorianCalendar class using the full class path? Likewise, what statement will import the GregorianCalendar class and any other java.util classes?

(Essay)
4.8/5
(32)

Match each term with the correct statement below. -Created using the keyword final

(Multiple Choice)
4.9/5
(38)

A disadvantage of Java is the large memory requirements to store a separate copy of each variable and method for each instantiation of a class.

(True/False)
4.7/5
(48)

A locally declared variable always ____ another variable with the same name elsewhere in the class.

(Multiple Choice)
4.8/5
(38)

It is not necessary to create an instance of the Math class because the constants and methods of the class are ____.

(Multiple Choice)
4.8/5
(44)

If you give the same name to a class's instance field and to a local method variable, the instance variable overrides the method's local variable.

(True/False)
4.9/5
(28)
Showing 21 - 40 of 67
close modal

Filters

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