Japan's economy dodged a recession last quarter as gains in government and consumer spending compensated for a slide in business investment.

Gross domestic product expanded by an annualized 1.7 percent in the first three months of this year, government figures showed Wednesday.

The October-December quarter was revised to a 1.7 percent contraction, worse than the previous estimate of a 1.1 percent drop.