Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java Study Set 1
Exam 8: A Second Look at Classes and Objects
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Enumerated types have the __________ method which returns the position of an enum constant in the declaration list.
Question 22
True/False
enum constants have a toString method.
Question 23
True/False
An enumerated data type is actually a special type of class.
Question 24
Multiple Choice
The "has a" relationship is sometimes called a(n) __________ because one object is part of a greater whole.
Question 25
Multiple Choice
A class that is defined inside another class is called a(n) __________.
Question 26
Multiple Choice
Java automatically stores a __________ value in all uninitialized static member variables.
Question 27
Multiple Choice
Given the following method header, what will be returned from the method? public Rectangle getRectangle()
Question 28
Multiple Choice
If the following is from the method section of a UML diagram, which of the statements below is true? + add(object2:Stock) : Stock
Question 29
Multiple Choice
You cannot use the fully-qualified name of an enum constant for ___________.
Question 30
True/False
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.
Question 31
Multiple Choice
You cannot use the == operator to compare the contents of __________.
Question 32
Multiple Choice
If you attempt to perform an operation with a null reference variable __________.
Question 33
Multiple Choice
Which of the following is not true about static methods?
Question 34
True/False
If you write a toString method to display the contents of an object, object1, for a class, Class1, then the following two statements are equivalent: System.out.println(object1); System.out.println(object1.toString());