The growth rate was 0.5 percentage points lower than that recorded in the first quarter of the year, the National Bureau of Statistics said in a statement.
China's buying and selling companions and traders are carefully watching the well being of the world's second-largest economic system because the year-long Sino-U.S. commerce warfare takes a heavier toll on companies and funding, fuelling worries of a world recession.
"Economic conditions are still severe both at home and overseas, global economic growth is slowing down and the external instabilities and uncertainties are increasing", said NBS spokesman Mao Shengyong.
But June activity data on Monday showed industrial production, retail sales and fixed-asset investment all beat analysts' forecasts, suggesting that Beijing's earlier growth-boosting efforts may be starting to have an effect.
Washington sharply raised tariffs on $200bn of Chinese goods in May, increasing the strain on a struggling manufacturing sector and threatening to crush already-thin profit margins. Analysts widely expect Beijing will step up support for the economy in coming months.
The economy has been slow to respond, however, and business sentiment remains cautious.
Ross Perot's life in pictures
Ross Perot crusaded against the deficit and was an early opponent of NAFTA, says " Fox News Sunday " anchor Chris Wallace. In 1992, Perot jumped into the presidential campaign as an independent candidate, challenging President George H.W.
Retail sales in rural areas rose 9.1 per cent year-on-year, outpacing the 8.3 per cent expansion of retail sales in urban areas in the first half year.
Also China's value-added industrial output, an important economic indicator, expanded six per cent year-on-year in the first half, NBS said.
There are bets the US Federal Reserve will cut borrowing costs at the end of the month, though there is speculation about how far it will go. In June, factory output rose 6.3%, retail sales rose 9.8%, while investment gained 5.8% in the first half of the year - all three beating estimates in further evidence that stimulus measures to curb the slowdown may be feeding through.
Americans are buying more from suppliers in Vietnam, Taiwan, Bangladesh and South Korea as they try to avoid USA tariffs on Chinese consumer goods, according to data released by the Census Bureau. Sales of automobiles surged 17.2 percent in the month, accelerating from a 2.1 percent gain in May.
Fixed-asset investment for the first half of the year rose 5.8% from a year earlier, compared with a 5.5% forecast and 5.6% in the first five months of the year. Property development investment slowed for a second month in June, dragging down the growth of newly started property construction and inventory.
Despite cooling sales and prices, real estate investment, a major growth driver for the world's second-largest economy, quickened in June.