TOKYO - Japan recorded a temperature of 40 C for the first time this year on Sunday, with the mercury hitting the scorching level in central Japan as a heatwave continues to engulf the nation, according to the weather agency.