Japan attained its second-biggest current account surplus on record in 2016, Ministry of Finance data showed on Wednesday.