Immediately after surgery you are not allowed to flex your hip past 90 degrees, no aduction (crossing your legs) and no rotation. This is so you don't dislocate the prosthesis. We usually get people out of bed day 1 post-op (depending on if you needed a blood transfusion) and people go home from the hospital by day 3-7 depending on thier mobility. When you leave you should be independent with crutches on stairs and on the flat. Some people are full weight bearing and some are partial, depending on the surgeon's preference. If you are FWB you won't lose as much mass.
Exercises you will be given are hip flexion to 90 degrees, hip abduction and quads exercises. The surgeons usually follow up after 6 weeks to check wound healing etc. By 6 weeks you might be walking with 1 crutch or on your own. If you are generally fit and well, 3-6 months is a good time frame to get back to normal, like Princess L said. You will have to avoid the positions of dislocation though so no squats in the gym. A physio should be able to help you out though with what you can/can't do.
I have seen one guy who was 40 and got his hip done. He had a SUFE when he was young and pins in both hips already. He went home on Day 3 and did very well afterwards. Sometimes a new hip can last upwards of 15 years - it all depends what you do with it. Replacing the individual components is straightforward though

.