错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Packages

  • Jeff Friesen

摘要

Same-named reference types (e.g., two different Math classes) can cause name conflicts when you try to use them, but Java overcomes this problem with packages. This chapter introduces you to the package concept followed by the package and import statements. Finally, you learn about static imports, protected access, and JAR files.