German submarine U-862 was a German Type IXD2 U-boat of the Kriegsmarine during World War II. She was the only German submarine to operate in the Pacific Ocean during World War II. After Germany's surrender in May 1945, U-862 put into Singapore and was taken over by the Imperial Japanese Navy under the name I-502.