Appendix A

Answers to Review Questions

Chapter 1: Introducing the Basics of Java

1. A, D If you missed this one, please reread the chapter!

2. False

3. C Object equality is a tricky concept. It will serve you well to remember that two variables can point to the same object in memory. They had certainly better be equal! Whether two variables, pointing to objects that have the same content, are equal is something the class programmer has to encode. Keep that information in your back pocket for now.

4. A Each non-static member in an object belongs only to that object. Other objects of the same type maintain their own values.

5. A A wildcard applies only to the package listed, not to nested packages. It is also not a globbing mechanism; it only matches ...

Get Java SE 7 Programming Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.