(16)RandomAccessFile descends from Object and implements DataInput and Data Output.
RandomAccessFile 类继承Object,并且实现了DataInput和DataOutput接口。
(17)Map does not implement Collection.
Map 并不实现 Collection.
(18)Dictionary is a class, not an interface.
Dictionary 是一个类,不是接口。
(19)Collection is an Interface where as Collections is a helper class. (这题我倒没见过,但还真容易看混)
Collection是一个接口,但 Collections却是一个辅助类。
(20)Class declarations can come in any order.
(也就是说: class Child extends Parents{} class Parents{}这种顺序是可以的.)可以以任何顺序申明类。
(21)Forward references to variables gives compiler error.
把 reference 给 变量,会产生编译错误。 (请提意见)
(22)Multi dimensional arrays can be sparce.
(这句话是说: 多维数组中子数组不一定必须有一定个数的元素,比如我们把一个二维数组看成一个矩阵,那么行与列中的元素可以不完整,可以不对齐.)
(23)Arrays, whether local or class-level, are always initialized.
数组,无论是当前的,还是类等级的,都会被初始化。
(24)Strings are initialized to null, not empty string.
String 是被初始化为 null,不是空字符。
(25)An empty string is NOT the same as a null string.
一个空字符串 不是 一个null字符。
26)A declaration cannot be labelled.
一个声明语句不能被标记。
(27)"continue" must be in a loop(for, do, while). It cannot appear in case constructs.
“continue”已经要在一个循环里(如for,do,while),它不能在case语句中出现。
(28)Primitive array types can never be assigned to each other, eventhough the primitives themselves can be assigned.
(也就是说: ArrayofLongPrimitives = ArrayofIntegerPrimitives 会编译出错,但
longvar = intvar 是合法的)
Primitive(int,char,long等)数组是不能互相赋值的,即使它们本身可以。
(29)A constructor can throw any exception.
一个Constructor可以抛出任何异常。
(30)Initilializer blocks are executed in the order of declaration.
初始化块是按照声明的顺序执行的。
第1页 | 第2页 | 第3页
时间:2007-5-8 7:54:10,点击:0
上一篇:菜鸟入门篇:如何快速的考取Java认证?【声明】:以上文章或资料除注明为Office吧自创或编辑整理外,均为各方收集或网友推荐所得。其中摘录的内容以共享、研究为目的,不存在任何商业考虑。被摘录的对象如有任何异议,请与本站联系,本站确认后将立即撤下。谢谢您的支持与理解!
相关评论
相关文章
推荐文章