The book is bleaker but still has a happy ending -- not quite as rosy as the movie's, but philosophically along the same lines. Both book and movie are very concerned with the human causes of the zombie plague, and in both book and movie the science is pretty much nonexistent and you really shouldn't care. It's all symbolism and a sweet story of love among the corpses. Just relax and enjoy the ride.