I'm trying to remember. If the last scene was of the U-boat commander on his bridge saluting the destroyer Captain as the U-boat went down. I think that the U-boat Commander was played by Curt Jurgens. Kind of reminiscent of the final scene of BOT where the Romulan Commander tells Kirk "In another time and place, we could have called each other friends."
There are a few scenes after the salute. The destroyer captain throws the U-boat commander a rope and brings the German Captain and XO to the destroyer. The American suggests they hurry to the boats and leave the XO because he's dying. The German says, I can't leave him he's my friend.
The next scene is on another US destroyer. The Germans and Americans are gathered together having a funeral for the XO. After the funeral the two captains move to the fantail. The German says, I should have been killed many times, but somehow manage to survive. This time it was your fault. The American says, I didn't know. Next time I won't throw you the rope. The German turns to look out at the sea and says, I think you will