Below are various hip exercises you can do to build muscle strength and reduce your risk of having to replace that hip!
The Good Morning, stand with your feet spread apart slightly, then bow as far as you can or until your torso is parallel with the floor. Keep your core braced, don't want to injure your back while you're protecting your hips!
The Glute Bridge, lay on your back, knees bent, feet flat on the floor, clench your glutes as you raise your hips til you form a slope. Hold the position for a bit, then lower.
Hip Abduction, put a resistance band around the leg of heavy furniture or a pole, and around your ankle facing that object. Spread your legs, shoulder width apart and bring the banded leg in until your ankles touch. you can also do this by putting the band around both legs, and spreading your legs.
Keep your body healthy and strong, and you shouldn't need a hip replacement, but if you are noticing significant joint pain, go see your doctor and discuss options!!