Clarify what Java import
does. Despite this name, .class files are loaded. All you do is save yourself. Java import
allows you to reference a class using its short name instead of its fully qualified class name (e.g. String
instead of java.lang.String
).
C # using
is different from Java import
if it actually adds something to the assembly. The Java.class bytecode is loaded as needed by the class loader, not earlier.
source share