Once they work out the barrel wear kinks, I think railguns could make an effective AA platform. Im not so sure about the direct ship to ship utility though. As seen in this video, the railgun ammunition punches really impressive holes directly through the test ship, but unless you hit a sweet spot, its just a really small hole in a really big warship, seemingly.
Railgun Damage To Japanese Target Ship Seen For The First Time