Just an additional note to Operation Ten-Go, the Japanese Army Air Force tried to make their contribution to the effort by launching an attack on the US Navy task force at Okinawa. 115 aircraft were sent, many of them kamikazes, but succeeded in only damaging one battleship, one carrier and one destroyer. Of the 115 aircraft sent, about 100 (no definitive number appears to be known) were lost. One could probably assume it was a mix of several factors, including the fact many of them were kamikaze to begin with, also that many were poorly trained pilots, there was US fighter cover for the task force, radar-directed AAA for the USN ships, and of course much better AAA guns like the Bofors.
As if to rub further salt in the wound, it's estimated of the 10 aircraft that were lost, it's reported that only 3 were actually shot down by Japanese AAA. The other 7 were believed to have been lost to the explosion that went off when the Yamato's magazine detonated.
Just to give an idea of how big the explosion was, here is a photograph of the moment after detonation, with the three surviving Japanese destroyers also in the image.
In retrospect, you could probably argue the Yamato's best AAA asset was it's magazine going off, rather than it's AAA.