The rate of growth increased on a sequential basis. GDP rose 2.2% from the preceding quarter, the statistics bureau said, compared with 2.1% growth in the first quarter.
Industrial production growth in June also came in much faster than expected, rising 15.1% from a year earlier, compared with 13.3% in May. Economists had expected it to slow to 13.1%.
Many economists have said that they expect the central bank's latest rate increase earlier this month to be the last for the year, but the strong data calls that forecast into question for some.
Non-rural fixed asset investment growth, a key gauge of construction activity, slowed slightly to rise 25.6% from a year earlier in the January-June period, compared with 25.8% growth recorded in the January-May period.
Retail sales in June rose 17.7% from a year earlier, compared with a 16.9% rise in May.