研发埠

标题: [Oracle interview]Are the imports checked for validity at compile time? [打印本页]

作者: 曹凯    时间: 2013-8-16 15:04
标题: [Oracle interview]Are the imports checked for validity at compile time?
e.g. will the code containing an import such as java.lang.ABCD compile?
作者: 于军    时间: 2013-8-16 15:19
Yes .the importsare checked for the semantic validity at compile time. The code containingabove line of import will not compile. It will throw an error saying,can notresolve symbolsymbol : class ABCDlocation: package ioimport java.io.ABCD;




欢迎光临 研发埠 (http://bbs.yanfabu.com/) Powered by Discuz! X3.2