I want my library/ jar in java to keep only its behavior (exposed interfaces) public and want rest of the stuff non-public for outside world. To keep the code modularized I also want to use different packages.
How can I made classes accessible to each other from different packages within the same jar, but not accessible from any client outside of the jar?