How does sudden braking on highways relate to the concept of negligence in Indian law?

The Supreme Court has stated that sudden braking on highways can be considered negligence. I want to understand how negligence is defined in law, and how such acts are judged in the context of road safety.