the People’s Bank of China (PBoC), the central bank, cutting benchmark interest rates four times since November and reducing bank reserve requirements in a bid to boost lending.
Such measures can take time to affect growth.
The NBS also said industrial output, which measures production at factories, workshops and mines, rose 6.8 percent year-on-year in June, accelerating from May’s 6.1 percent.
It was ahead of a median forecast for 6.0 percent expansion in a survey of economists by Bloomberg News.
Retail sales, a key indicator of consumer spending, increased 10.6 percent last month from the year before, the NBS said, a faster pace than May’s 10.1 percent. It also beat the Bloomberg News survey’s median 10.2 percent.
And fixed asset investment, a measure of government spending on infrastructure, expanded 11.4 percent in January-June year-on-year, the same as for the first five months of the year and remaining at its lowest since 2000.
In the light of the figures Nomura economist Zhao Yang emphasised an "upside risk to our annual forecast of GDP growth for 2015" of 6.8 percent. He cautioned however, that "headwinds in the economy" were "still strong" and authorities were likely to further ease monetary policy in the form of another interest rate cut and further reduction in bank reserve requirements.
Chaotic trading on the country’s key stock markets in recent weeks has added to uncertainty. However, Julian Evans-Pritchard, China economist at capital Economics, said in a note that GDP benefitted temporarily during the second quarter as a whole from the "unsustainable surge in financial sector activity".
"Looking ahead, the support to growth from the financial sector should soon fade," he said.
"But the recent step-up in policy support will limit the downside risks," he added.
China’s total trade declined in the first half of this year, official data showed Monday, falling well short of the government’s targets, and poses a significant weight on growth. Manufacturing has also languished with official and private surveys showing it hovering near the borderline between expansion sand contraction.
"The resilience of retail sales in June is a further encouraging sign that downside risk, while not negligible, is receding, despite recent equity-market volatility," Andrew Colquhoun, head of Asia-Pacific Sovereigns at Fitch Ratings, wrote in a reaction to the data.