Japan qualified for both the men's and women's 4x100-meter medley relay swimming event at the 2020 Tokyo Olympics by advancing to their respective finals at the world championships on Sunday.