Java Scjp 陷阱大全.doc

时间:2011-11-19 14:43:16
【文件属性】:
文件名称:Java Scjp 陷阱大全.doc
文件大小:42KB
文件格式:DOC
更新时间:2011-11-19 14:43:16
Java Scjp 陷阱大全 SCJP考题中的陷阱 原著 Ajith Kallambella (1) Two public classes in the same file. (illegal)  一个source file只能有一个public class (2) Main method calling a non-static method. (illegal)  static 不能够存取非static成员。(程序进入点的main(),是static method) (3) Methods with the same name as the constructor(s). (这种题常有)  方法名称可以跟Constructor和Class名称相同

网友评论