Japan's gross domestic product for the April-to-June quarter came in at 2.5 percent growth, data released on Friday showed.