Japan's real gross domestic product grew at an annualized rate of 6 percent in the second quarter of 2023, official data showed on Tuesday.