When the processor comes out of reset, the boot loader runs. The boot loader then checks the serial port. If there is activity on the serial port, the boot loader knows that a new sketch is available for upload and proceeds to load the new sketch code to flash and run the new code. If there is no serial activity, the boot loader knows to run the code already in flash. So, upload of a new sketch cannot take place without the target chip going through a reset cycle.