Exam 7: Object-Oriented Programming, Part 2: User-Defined Classes
Exam 1: Introduction to Programming and the Java Language47 Questions
Exam 2: Programming Building Blocks- Java Basics57 Questions
Exam 3: Object-Oriented Programming, Part 1: Using Classes62 Questions
Exam 4: Introduction to Graphical Applications57 Questions
Exam 5: Flow of Control, Part 1: Selection68 Questions
Exam 6: Flow of Control, Part 2: Looping67 Questions
Exam 7: Object-Oriented Programming, Part 2: User-Defined Classes78 Questions
Exam 8: Single-Dimensional Arrays63 Questions
Exam 9: Multidimensional Arrays and the Arraylist Class62 Questions
Exam 10: Object-Oriented Programming, Part 3: Inheritance, Polymorphism, and Interfaces61 Questions
Exam 11: Exceptions, and Input Output Operations77 Questions
Exam 12: Graphical User Interfaces Using Java FX89 Questions
Exam 13: Recursion59 Questions
Exam 14: An Introduction to Data Structures69 Questions
Exam 15: Running Time Analysis56 Questions
Exam 16: RGB Colors, Decimal Conversion, Java Naming, and Random Number Generation110 Questions
Select questions type
Inside the curly braces we define the data of the class, called its ___________, and the methods.
(Multiple Choice)
4.7/5
(41)
If you do not write a constructor for a class, the compiler will provide a default constructor.
(True/False)
4.7/5
(33)
Why should you provide new versions of the toString and equals methods from the Object class?
(Multiple Choice)
4.7/5
(39)
The __________ method typically returns a String representation of the object data.
(Short Answer)
4.7/5
(35)
In addition to modifying the value of an instance variable, what is the other function of a mutator method?
(Short Answer)
4.9/5
(38)
enum Colors { RED, YELLOW, BLUE }; can be used to write a statement that represents colors in various order.
(True/False)
4.8/5
(43)
Javadoc discards all whitespace characters and the * at the beginning of each line until a non-whitespace character and non * character is encountered, so starting each comment with an * makes the Javadoc stand out.
(True/False)
4.8/5
(29)
A(n) _________ is a collection of classes that can be imported into a program.
(Short Answer)
4.8/5
(36)
The instance variables of a class hold the data for each object of that class.
(True/False)
4.8/5
(37)
The data type of the return value of the toString method is:
(Multiple Choice)
4.9/5
(35)
When we code the toString method of a class, we are __________ the toString method of the Object class.
(Short Answer)
4.9/5
(31)
The following is the general form of which method?
Public void setInstanceVariable( dataType newValue )
{
// validate newValue, then assign to the instance variable
}
(Multiple Choice)
4.9/5
(36)
Showing 61 - 78 of 78
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)