I have a package com.deepak.test that means I have a folder structure like com/deepak/test
I also have one more package com.deepak.test1 that means I have a folder structer like com/deepak/test1
If I have a class TestClass in both packages and I want to call this class from some other package.
When I want to import a TestClass from com/deepak/test1 folder. It is almost like giving the path of the class. JVM will search the same path in its classpath.
I'll mention "import com.deepak.test1.TestClass"
or if I want the TestClass in com/deepak/test then I'll mention as "import com.deepak.test.TestClass"