Does Exercise Really Build Bone?

I always understood that regular exercise could improve bone density and prevent osteoporosis. I've been walking daily for exercise, but I recently read that it won't actually help my bones. If not, what will?
Source: Dr. Weil Q and A - Category: Consumer Health News Source Type: news