Exam 6: A Second Look at Classes and Objects
Exam 1: Introduction to Computers and Java40 Questions
Exam 2: Java Fundamentals40 Questions
Exam 3: A First Look at Classes and Objects40 Questions
Exam 4: Decision Structures40 Questions
Exam 5: Loops and Files40 Questions
Exam 6: A Second Look at Classes and Objects40 Questions
Exam 7: Arrays and the ArrayList Class40 Questions
Exam 8: Text Processing and Wrapper Classes40 Questions
Exam 9: Inheritance40 Questions
Exam 10: Exceptions and Advanced File I/O40 Questions
Exam 11: GUI Applications–Part 140 Questions
Exam 12: GUI Applications–Part 240 Questions
Exam 13: Applets and More40 Questions
Exam 14: Creating GUI Applications with JavaFX40 Questions
Exam 15: Recursion20 Questions
Exam 16: Databases40 Questions
Select questions type
You cannot use the fully-qualified name of an enum constant for
(Multiple Choice)
4.8/5
(42)
A class's static methods do not operate on the fields that belong to any instance of the class.
(True/False)
4.8/5
(41)
The names of the enum constants in an enumerated data type must be enclosed in quotation marks.
(True/False)
4.8/5
(25)
The JVM periodically performs this process to remove unreferenced objects from memory.
(Multiple Choice)
4.9/5
(43)
By default, a reference variable that is an instance field is initialized to the value
(Multiple Choice)
5.0/5
(34)
If the following is from the method section of a UML diagram, which of the following statements is true?
+ equals(object2:Stock) : boolean
(Multiple Choice)
4.9/5
(38)
Assuming the following declaration exists:
Enum Tree { OAK, MAPLE, PINE }
What will the following code display?
System.out.println(Tree.OAK);
(Multiple Choice)
4.8/5
(40)
The key word this is the name of a reference variable that an object can use to refer to itself.
(True/False)
4.8/5
(36)
A declaration for an enumerated type begins with this key word.
(Multiple Choice)
4.8/5
(40)
If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.
(True/False)
4.9/5
(34)
If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.
(True/False)
4.6/5
(28)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)