I'd imagine that if things like force fields and shield technology are discovered, Battleships might make a comeback... or we could encase them in landing goo, maybe?
This kind of artillery is not obsolete. It's so much cheaper than cruise missiles. It's similar to the whole F-4 Phantom situation really; America is too fond of guided missiles.