Moscow: Russian President Vladimir Putin has said that attempts made to contain China are bound to fail and even backfire.

"Anyone who undertakes such an attempt will sooner or later understand that it is simply impossible, and these people will end up hurting themselves," Xinhua quoted Putin as saying on Thursday during the Q&A session at an annual meeting of Russian think tank Valdai Discussion Club in the Black Sea city of Sochi.

"If we join efforts together to create an atmosphere of cooperation and try to establish a collective security system, that will be beneficial," he told the audience.

Putin hailed the Russia-China partnership in trade and major projects, space exploration, interconnectivity and defence.

Russia and China are cooperating for each other's interests and not against a third country, he said.