The Battle of the Java Sea, during February and March 1942, was one of the costliest naval battles of World War II. The naval forces of the Netherlands, Britain, Australia, and the U.S. were nearly completely destroyed trying to defend Java from Japanese attack.