曹凯 发表于 2013-8-16 15:04:07

[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:24

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;
页: [1]
查看完整版本: [Oracle interview]Are the imports checked for validity at compile time?