The u-joints are done the same way, but are usually more difficult. They have internal snap rings - not the external ones the driveshafts have.
Getting the spindle off the knuckle is probably the hardest part. And it's important to put the hubs back together right and ensure proper wheel bearing preload.