Japan is also known for its high population density : In 2017 , it amounted to an eye-watering 347.78 inhabitants per square kilometer - however , it is not even among the top twenty countries with the highest population density worldwide .