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
Which access modifier can be referenced by methods of the same class only?
(Multiple Choice)
4.8/5
(37)
price is an instance variable of a class. Inside the method public void change( int price ), how do we refer to the instance variable price and not the parameter price?
(Short Answer)
4.9/5
(36)
The reference __________ refers to the object reference with which this method has been called.
(Short Answer)
4.7/5
(35)
The __________ method is called automatically when an object reference is used as a String.
(Multiple Choice)
4.7/5
(34)
When you define a static variable for your class, it is better to define its accessor and mutator methods as class methods.
(True/False)
4.8/5
(33)
A parameter to a mutator method with the same name as the instance variable being changed hides the instance variable.
(True/False)
4.8/5
(46)
Mutator methods can be void methods or can return the reference this.
(True/False)
4.9/5
(32)
A method parameter or local variable that has the same name as an instance variable will __________ that instance variable.
(Short Answer)
4.9/5
(37)
Suppose Angelica ran a program with multiple constructors and got a compiler error. How could she improve her program to avoid the error?
(Essay)
4.8/5
(42)
What will happen if you do not put curly braces around a method body?
(Multiple Choice)
4.8/5
(31)
How should slashes and asterisks be used in a Javadoc comment?
(Multiple Choice)
4.8/5
(32)
Which of the following is an advantage of providing multiple constructors?
(Multiple Choice)
4.8/5
(39)
Showing 41 - 60 of 78
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)