have to be prepared like I suggested, everyone is doing the easy thing, guns...but it's about after you use up all your ammo
a nice bladelike hold-over will do the job...but if you have a trusty samurai sword and know how to use it, it's a one shot strike to all zombies...and you can dispatch them in close quarters....no need to aim really, no worry about the last round with some zombie and your gun jams...and you are wimpering like some loser in the movies
sharp blade works best for ultimate zombie survival situation, vs slow or fast zombies...it's all about the ammo