Sections 335 and 336 of the Indian Penal Code address offenses related to causing hurt. Section 335 discusses voluntarily causing grievous hurt during provocation, punishable by up to 4 years imprisonment, a fine of up to 2,000 rupees, or both. Section 336 involves endangering human life or safety through rash or negligent acts, punishable by up to 3 months imprisonment, a fine of up to 250 rupees, or both. Both sections are cognizable, bailable offenses triable by a Magistrate, with Section 335 being compoundable and Section 336 being non-compoundable.