Java Scjp 陷阱大全.doc
SCJP考题中的陷阱原著AjithKallambella(1)Twopublicclassesinthesamefile.(illegal)一个sourcefile只能有一个publicclass(2)Mainmethodcallinganon-staticmethod.(illegal)static不能够存取非static成员。(程序进入点的main(),是staticmethod)(3)Methodswiththesamenameastheconstructor(s).(这种题常有)方法名称可以跟Constructor和Class名称相同
下载地址
用户评论