Answer:
Japan builds Buildings that are made to withstand earthquakes. These buildings are usually apartment buildings or Important buildings to protect citizens. (ignore the last answer)
P.S. they also build water walls to protect from flooding
hope it helped!