GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.oracle.com — Summary of Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages) Documentation
The Java™ Tutorials
Hide TOC
Summary of Creating and Using Packages
Trail: Learning the Java Language
Lesson: Packages Section: Creating and Using Packages 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. Summary of Creating and Using PackagesTo create a package for a type, put a To use a public type that's in a different package, you have three choices: (1) use the fully qualified name of the type, (2) import the type, or (3) import the entire package of which the type is a member. The path names for a package's source and class files mirror the name of the package. You might have to set your About Oracle | Contact Us | Legal Notices | Terms of Use | Your Privacy Rights Copyright © 1995, 2024 Oracle and/or its affiliates. All rights reserved.
Previous page: Managing Source and Class Files
Next page: Questions and Exercises: Creating and Using Packages |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |