The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
Assume you have written some classes. Belatedly, you decide they should be split into three packages, as listed in the following table. Furthermore, assume the classes are currently in the default package (they have no package
statements).
Package Name | Class Name |
---|---|
mygame.server |
Server |
mygame.shared |
Utilities |
mygame.client |
Client |
Download the source files as listed here.
mygame
directory you just created.)Check your answers.