Pickles have a long shelf life and do not get spoiled for months, why?
Plenty of salt and cover of oil act as preservative. These do not allow bacteria to thrive on them.