Shelf life of car battery

Dry, or wet? If it’s a dry battery that has never had acid added it should be fine. One that has acid in it would probably need an occasional charging to keep it up to snuff and then it should be OK. If you left it just sitting without charging odds aren’t good, but you might get a few months/years out of it after a charge up.