If the custom class is in same then there is no need to import, you can just instantiate it like this:
className object=new className();
If the custom class is in a different class then you have to import it like this:
import packagename.className;
And instantiate using:
Classname className=new className()
Want to learn Java? Check out the Java course from Intellipaat.