Replacing the driveshafts would have replaced the CV joints along with the driveshaft assemblies, resolving the knocking sound. However, if the knocking sound persists or returns after driving for some time, it's important to have the car inspected further to identify any other potential causes. Some possible reasons for a knocking sound from the front of a car could include:
* Worn or damaged suspension components, such as ball joints, control arm bushings, or sway bar links
* Issues with the steering system, such as worn tie rod ends or a faulty steering rack
* Problems with the wheel bearings or hub assemblies
* Loose or damaged brake components, such as loose lug nuts or brake pads that have worn excessively and are making contact with the rotors
If you continue to experience the knocking sound, it's advisable to take your car to a qualified mechanic or automotive workshop for a proper diagnosis and repair. They can inspect the front suspension, steering system, wheel bearings, and brake components to pinpoint the exact cause of the knocking sound and provide the necessary repairs.