first uboat of type xxi was shipped in the end of 1944. but only a few where on war patrol, at the end of the war - although none of them sunk any ship. some of them where lost on their way to the north, where donitz wanted to reunite the uboat-weapon for a new phase of the war, lead from the northern, unoccupied territories.
but most of them still remained at training..and where never sent on patrol. luck for the crews, who survived the war due to this fact