Exam 4: More Object Concepts
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
If you give the same name to a class's instance field and to a local method variable, the instance variable overrides the method's local variable.
(True/False)
4.8/5
(48)
What is the difference between class variables and instance variables?
(Essay)
4.7/5
(33)
Match each term with the correct statement below.
Premises:
Not a number
Responses:
nested
enumeration
Java.time
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(51)
In a Java ____statement, you use a wildcard symbol to represent all the classes in a package.
(Multiple Choice)
4.8/5
(33)
The ____ package contains is implicitly imported into Java programs and is the only automatically imported, named package.
(Multiple Choice)
4.8/5
(31)
Match each term with the correct statement below.
Premises:
Library of classes
Responses:
overloading
constant
enumeration
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(37)
A(n) ____ block begins immediately after the method declaration and ends at the end of the method.
(Multiple Choice)
5.0/5
(37)
Using Java statements, show how you can use the LocalDate class by using the full path and by using an import statement.
(Essay)
4.9/5
(46)
The java.lang package is implicitly imported into every program you write. The classes it contains are ____ that provide the basis of the Java programming language.
(Multiple Choice)
4.9/5
(34)
If a class's only constructor requires an argument, you must provide an argument for every ____ of the class that you create.
(Multiple Choice)
4.9/5
(39)
Because the square root of a negative number is not defined, what is the result of this statement: System.out.println (Math.sqrt(-16));
(Multiple Choice)
4.8/5
(33)
In the above code, what happens to the value of aNumber when the main() method is executed? What happens to the value of aNumber when the firstMethod and secondMethod methods are executed?

(Essay)
4.9/5
(35)
When an object of one class is a data field within another class, they are related by ____.
(Multiple Choice)
4.9/5
(40)
It is a convenience to be able to use one reasonable name for ____ that are functionally identical except for argument types.
(Multiple Choice)
4.8/5
(37)
The compiler determines which version of a method to call by the method's ____.
(Multiple Choice)
5.0/5
(35)
Match each term with the correct statement below.
Premises:
A variable that hides another variable
Responses:
shadowing
enumeration
constant
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(41)
int aMethod(int x)
void aMethod(int x)
In the above statements, explain why these two methods are illegal in the class.
(Essay)
4.8/5
(35)
Showing 21 - 40 of 84
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)