Exam 7: Object-Oriented Programming, Part 2: User-Defined Classes

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

Javadoc is an executable program used to produce HTML-based documentation similar to the documentation available on Oracle's Java website.

Free
(True/False)
4.8/5
(34)
Correct Answer:
Verified

True

Accessor methods take no parameters.

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

True

A method of a class can access:

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

D

Javadoc recognizes two types of tags: block tags and comment tags.

(True/False)
4.8/5
(29)

static methods can call non-static methods.

(True/False)
4.8/5
(36)

The access modifier of accessor and mutator methods is usually __________.

(Short Answer)
4.9/5
(39)

Which of the following is a similarity between ordinal( ) and compareTo( Enum eObj )?

(Multiple Choice)
4.9/5
(35)

The enum objects are instantiated as constant objects, meaning that their values can be changed.

(True/False)
4.8/5
(38)

The default constructor takes no parameters.

(True/False)
4.9/5
(31)

What are the three access modifiers?

(Short Answer)
4.9/5
(42)

Block tags start with the character @.

(True/False)
5.0/5
(39)

Static data belong to the class, rather than to a particular object, or instance, of the class.

(True/False)
4.9/5
(36)

Analyze why a programmer would want to make known the public method names and their APIs, but not the code of the class.

(Essay)
4.7/5
(44)

How would you defend taking the time to design your own classes?

(Essay)
4.8/5
(36)

static variables that are constants are usually declared to be public because they typically are provided to allow the client to set preferences for the operations of a class. If you define a static variable for your class that is not a constant, it is best to define it as private and provide accessor and mutator methods, as appropriate, for client access to the static variable.

(True/False)
4.8/5
(39)

In terms of accessing instance variables, are static or non-static variables more restricted?

(Short Answer)
4.9/5
(41)

The name of a method, along with its parameter list, is called the __________ of that method.

(Short Answer)
4.8/5
(37)

Give an example of a Javadoc tag.

(Short Answer)
4.9/5
(34)

What syntax is used to define a class?

(Essay)
4.8/5
(34)

When we provide several constructors, we are __________ that method.

(Short Answer)
4.8/5
(35)
Showing 1 - 20 of 78
close modal

Filters

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