O'Reilly logo

Java, A Beginner’s Guide, 5th Edition by Herbert Schildt

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

Image Chapter 8 Self Test

1. Using the code from Try This 8-1, put the ICharQ interface and its three implementations into a package called qpack. Keeping the queue demonstration class IQDemo in the default package, show how to import and use the classes in qpack.

2. What is a namespace? Why is it important that Java allows you to partition the namespace?

3. Packages are stored in ______________.

4. Explain the difference between protected and default access.

5. Explain the two ways that the members of a package can be used by other packages.

6. “One interface, multiple methods” is a key tenet of Java. What feature best exemplifies it?

7. How many ...

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