There is no difference between the two folders; the files of your website must be uploaded to the "public_html" folder.
The "www" folder is an alias (symlink) for public_html. The reason for the existence of 2 folders for the same purpose is to facilitate the transfer of some web applications, respectively to eliminate or reduce the need to change paths in scripts.
