I have a 5065e that's an 09, 10, or 11 (can't remember). I got it as an off lease several years ago with a few hundred hours on it. So far the only issue I have had is the cold start sensor went bad which was blowing the ignition fuse. It now has about 900ish hours on it. I also bought a 04 Kubota M6800 (the predecessor to the M7040 about 3 years ago, it had 396 hours on it and now has about 700.
Both have been great tractors, the Kubota is a slightly higher HP tractor and is non turbo it runs quieter, smoother, and has noticeably more low end power. However, the JD will flat out work it when breaking ground. Both have water in the rear tires, the JD does have water in the front tires and a FEL, so the total JD weight is higher.

FEL's and 4WD are two options that do not seem to depreciate, but a 2WD tractor without a FEL can be had for pretty cheap (compared to new).