Exam 5: Defining Classes Ii

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

The conversion from an object of a wrapper class to a value of its associated primitive type is called:

(Multiple Choice)
4.9/5
(40)

You should avoid the use of null as an argument to a method.

(True/False)
4.9/5
(36)

Javadoc requires a comment to be delimited by _________ to be included in the extracted class interface.

(Multiple Choice)
4.9/5
(34)

What is the purpose of Java's wrapper classes?

(Essay)
4.8/5
(45)

Create a Java class named Book with instance variables title,author,ISBN,and yearPublished.Include javadoc style comments to describe your interface.Such a class would normally have methods,but you are not required to supply any methods.

(Essay)
4.8/5
(33)

Add accessor and mutator methods to the Book class created in question #13.

(Essay)
4.7/5
(30)

The String class is a mutable class.

(True/False)
4.8/5
(36)

When used with objects,what is the equality ( == )operator really comparing?

(Essay)
4.9/5
(37)

A main method can be placed inside a class definition.

(True/False)
4.9/5
(37)

A static method is one that can be used with a _____________.

(Multiple Choice)
4.9/5
(41)

In a static method,you may use the this parameter either explicitly or implicitly.

(True/False)
4.9/5
(34)

A class that contains public methods that can change the data in the object of a class is called a/an:

(Multiple Choice)
4.8/5
(42)

Static variables are often used:

(Multiple Choice)
4.8/5
(32)

All of these are methods of Java's Math class except:

(Multiple Choice)
4.8/5
(38)

A condition that allows a programmer to circumvent the private modifier and change the private instance variable is called:

(Multiple Choice)
4.8/5
(35)

You may use methods of the Math class without an import statement.

(True/False)
4.8/5
(38)

A copy constructor has _________ parameters.

(Multiple Choice)
4.9/5
(42)

Define boxing and unboxing.

(Essay)
4.7/5
(40)

The Math method that returns the nearest whole number that is greater than or equal to its argument is:

(Multiple Choice)
4.9/5
(37)

A class invariant is a statement that is always true for every object of the class.

(True/False)
4.8/5
(35)
Showing 21 - 40 of 46
close modal

Filters

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