Sharif made the remarks during a visit to the Frontier Corps headquarters in the northwestern city of Peshawar. His visit came close on the heels of the execution of 23 Frontier Corps personnel by a Taliban faction.
"Let there be no doubt that Pakistan's armed forces are battle hardened and fully capable to counter any internal or external threat posed to the integrity and sovereignty of our beloved country," Sharif was quoted as saying by the military's media arm.
"We are fully prepared to confront any challenge in future as well," he said.
Appreciating the morale of the troops, Sharif said the country had acknowledged the sacrifices rendered by them as part of a "national effort to eliminate the scourge of terrorism". He assured the troops that these sacrifices will not go waste.
More From This Section
The army chief's remarks came a day after the air force carried out strikes on Taliban bases in North Waziristan and Khyber tribal regions, killing at least 40 militants.
There is intense speculation that the military is in favour of a full-fledged operation against the Taliban but elements in the government and the opposition are not on the same page.