In C++/C#, namespaces are just used for partitioning names to avoid collisions by accidentally using the same name for a variable in different places.
In Java, packages are far more than just that - packages are used for modules, the naming aspect is just a part of it.