O'Reilly logo

Java SE 7 Programming Essentials by Michael Ernest

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required