TOKYO — Japan’s economy grew more strongly than expected in the second quarter, extending the longest streak of uninterrupted growth in 11 years, government data showed on Monday.

And the really good news: Much of the growth was local.

Japan’s government has been trying to spur the economy with a stimulus program known as Abenomics, after Prime Minister Shinzo Abe. The strategy has helped Japan’s exporters but has done little to increase domestic income or spending.

That may be changing.

Spending by Japanese consumers and businesses contributed more to the latest expansion than trade with the rest of the world did, the data showed, in a positive sign for the outlook of the world’s third largest economy, after the United States and China.

What Happened?

Japanese gross domestic product increased by 4 percent in annualized terms in the three months through June, the government’s Cabinet Office said in a preliminary estimate on Monday. The economy has now expanded for six consecutive quarters, the first time it has gone that long without a contraction since the 2005-6 period.