← BYTES
Java·Starter·Ref: 9.1.11
What does the `import` statement do in a Java source file?
Have a question about this video? Mention reference 9.1.11 when you contact us.
a.It copies another file's bytecode into the current file physically
b.It deletes unused classes
c.It compiles a class immediately
d.It lets the current file reference classes from another package by their simple name instead of a fully-qualified one
import is purely a compile-time convenience -- it lets you write `List` instead of `java.util.List` everywhere in the file; it doesn't copy, link, or load any code itself.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES9111#Java