Fan Weiqu drove his car into a crowd, killing 35 people, while 21-year-old Xu Jiajin killed eight people and wounded 17 in a stabbing attack.
China has executed two men who carried out a deadly terrorist attack in November, raising concerns about the number of so-called “revenge crimes against humanity,” state media said.
Fan Weiqu, 62, who he drove his car A crowd outside a stadium in the southern city of Zhuhai, killing at least 35 people, was killed on Monday.
The attack is the country's deadliest in more than a decade, according to officials. Police said Fan was upset about her divorce.
Also in November, 21-year-old Xu Jiajin killed eight people and injured 17 in a stabbing attack at his vocational school in the eastern city of Wuxi.
Police said Wu failed his exams and was unable to complete his studies, and was dissatisfied with his salary as an apprentice. He was also killed on Monday, according to state broadcaster CCTV.
Chinese President Xi Jinping has urged local governments to take measures to stop such violence, which is known as “revenge of crimes against humanity”.
The murder sentences for the two men were handed down by the central people's courts in the cities of Zhuhai and Wuxi, respectively, in December, and upheld by the Supreme People's Court, according to state media.
Violent violence is less common in China than in many Western countries, but in recent years the number has increased. The stabbings and drive-by shootings have given the ruling Communist Party a reputation for protecting people and preventing crime.
They also had some puzzling features that led some to question perceived problems such as depression and economic decline, unemployment and underpopulation.
China keeps death penalty statistics a state secret, but some rights groups believe the country executes tens of thousands of people each year. Executions are usually carried out with guns, although lethal injection has also been used in recent years.