Exam 5: Defining Classes II

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

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

(Multiple Choice)
4.8/5
(36)

All of the following are wrapper classes except:

(Multiple Choice)
4.8/5
(39)

Add a constructor and a copy constructor to the Book class created in question #13.

(Essay)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(43)

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

(Multiple Choice)
4.8/5
(36)

Write ONE Java statement that computes and displays the value of 2< sup >5< /sup >.

(Essay)
4.9/5
(42)

Deprecated methods should be used in new Java code.

(True/False)
4.8/5
(33)

All versions of Java support automatic boxing.

(True/False)
4.9/5
(29)

The program included in the Java SDK that allows a programmer to separate the class interface from the class implementation is called:

(Multiple Choice)
4.7/5
(38)

Wrapper classes are provided for all primitive Java types except Boolean.

(True/False)
4.7/5
(37)

null can be used:

(Multiple Choice)
4.8/5
(40)

Primitive types are reference types.

(True/False)
4.9/5
(34)

Only ______ copy/copies of a static variable are available to objects of a class.

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.9/5
(32)

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

(Multiple Choice)
4.8/5
(42)

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

(True/False)
4.7/5
(36)

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

(Essay)
4.8/5
(31)

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

(True/False)
4.9/5
(44)

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

(Multiple Choice)
4.9/5
(43)

Write ONE Java statement that computes and displays a random number between 1 and 25.

(Essay)
5.0/5
(43)
Showing 21 - 40 of 46
close modal

Filters

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