In the Nikon D40, my experience was bad because I was used it when purchased it On same day, it starts hanging several times when I was click my picture. Then I realised some machinery parts may not functioning. Then I was complaint it but no one can hear it regarding my hanged on every pics.
So know I didn't use it anymore because its functioning was not properly and battery had also down within an half an hour. So no shopkeeper will replace it. I can never experienced with great pictures on this camera.
And no company will replace it. So my experience was not with good as others with nikon company.