Large warships are built to take a lot of punishment with multiple watertight compartments to contain flooding and stuff like that. The Yamato took at least eleven hits from torpedos and several bombs from USN aircraft before she went down. That was one tough ship