Why does java recommend having TLD in the beginning of the package names i.e., why does it have to be
package com.example.pack;
It can as well be
package pack.example.com;
Just wondering what might be the reason behind deciding to put the TLD in the beginning.
The package correspond to directories in the file system. pack.example.com and pack.example2.net would both be in the same directory, even if the url suggest they are not related, but with com.example.pack and net.example2.pack, related packages are in the same directory.