The Philippines, Burma, and the Dutch East Indies were the last major territories the Japanese invaded in World War II, all captured in early 1942. As Corregidor surrendered, the Battle of the Coral Sea was in progress, turning back a Japanese attempt to seize Port Moresby, New Guinea by sea. By the final surrender on 9 June, the Battle of Midway was over, blunting Japan's naval strength with the loss of four large aircraft carriers and hundreds of skilled pilots. Both of these victories were costly to the US Navy as well, with two aircraft carriers lost, but the United States could replace their ships and train more pilots, and Japan, for the most part, could not do so adequately.