Doctors in Heilongjiang Province spent over two hours removing the needles that were buried in the child's stomach.
The boy's father found lumps on his son's stomach while bathing him, but the boy was not letting him check closely, 'Global Times' reported.
However, the boy suffered intense stomach pain and was admitted to The 2nd Affiliated Hospital of Harbin Medical University.
The youngster said he had pierced his stomach with the needles as punishment for not scoring 100 per cent in his final exams as he did previously, the report said.
Surveys have shown that pressure to succeed sets in early for Chinese students, so much so that one in four secondary students consider suicide, according to Shanghaiist.
The report said China's students were ranked as the most stressed in the world in 2009, with high school students having longest study hours as compared to those in Japan, US and Korea.