Arduino IDE and hex files ????

After playing around some more I found out the the hex file is indeed in the directory mentioned above only when the IDE is running. If the IDE is terminated then the files that are produced, after compiling your sketch, are deleted