Solutions to other chapters:
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  
Java Methods Home Page Skylight Publishing



Java Methods A & AB:
Object-Oriented Programming and Data Structures

Answers and Solutions to Exercises

Chapter 3

1. (c) F -- it's the other way around: it tells where the compiler can find classes used by this class.
2. (a) T -- we can say that, meaning that its source code defines three classes, FootTest, Foot, and CoordinateSystem, even though it also uses a number of library classes.  It wouldn't be a big mistake to exclude CoordinateSystem from the count, because this class is hidden in the jar file and is reused in different programs, so we can view it as our own "library" class.
(d) F
3. (b) 300-350
5. (b) T
(e) F -- An object may not even have an init method.

Copyright © 2006 by Skylight Publishing