what is the difference of compulsory and necessary?
Mandatory means that something is required because an authority mandated it. It is mandatory to have a driver's license to drive legally. Necessary means that something is needed for a practical reason. It is necessary to have all the wheels on your car to drive it.