Q)Is it possible to use objects from classes with the same package you are creating?
A)Yes it is possible.
There is no need of import class of same package (It is just a optional).
The problem what I guess you are facing is incorrect way of calling the cass.
Follow this step to make your code work.
1)set the classpath. i.e, set classpath=%classpath%;c:\example;
Here replace c:\example with the folder name where your com folder is located.
2)Then execute the main method with the fully qualified name. That is
Java com.test.Test
-arun