Professional Documents
Culture Documents
Solution Manual For Starting Out With Java From Control Structures Through Objects 5 e 5th Edition 0132989999 Full Download
Solution Manual For Starting Out With Java From Control Structures Through Objects 5 e 5th Edition 0132989999 Full Download
Chapter 8
1. c
2. c
3. a
4. c
5. b
6. c
7. d
8. b
9. c
10. a
11. b
12. False
13. False
14. True
15. False
1. The static method setValues cannot refer to the non-static fields x and y.
2. You cannot use the fully-qualified names of enum constants in the case
expressions.
Algorithm Workbench
1.
if (c.getRadius() == radius)
Gaddis: Starting Out with Java: From Control Structures through Objects, 5/e 2
status = true;
else
status = false;
return status;
}
return status;
}
2.
a) 3
b) 3
c) 1
d) 0
e) Thing.putThing(5);
Short Answer
Gaddis: Starting Out with Java: From Control Structures through Objects, 5/e 3
8. The key word this is the name of a reference variable that an object can use to
refer to itself. It is available to all non-static methods.
9. a) Color
b) Color.RED, Color.ORANGE, Color.GREEN, Color.BLUE
c) Color myColor = Color.BLUE;
10. a) POODLE
BOXER
TERRIER
b) 0
1
2
c) BOXER is NOT greater than TERRIER