[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? 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]