Import Statement
In : BCA Subject : Java ProgrammingThe java import keyword is used to import already existing classes in Java, into our program.
for ex: in our program if we say import java.util.*; it means we are importing all the classes inside the package java.util into our current class and we can use those classes here.
If you try to use any external class without importing it, you will get a compile time error. The import keyword tells the compiler the places where it has to look for external class references.