There are two types of import Explicit & Implicit , well what is import and why do we need to use in our java source code? When we use predefined java classes in our java code then we need to load that class by the using import keyword at the very first line of our program.