第十八章
定义包语句,例如:package people;,需要放在源程序的最前面。( )
答案:对
包名和子包名之间用“.”分隔。( )
答案:对
包名对应操作系统中的目录名。例如,包名java.lang,则对应java目录下lang目录下的类。( )
答案:对
使用import语句导入包中的类,例如:import people.Student;语句导入people包下的Student类。( )
答案:对
使用语句import people.Student导入包people中类是Student.java。( )使用语句import people.Student导入包people中类是Student.class。( )
答案:对
在Java规范中,包名一般使用小写英文单词。( )
答案:对

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(0) dxwkbang
返回
顶部