What type of exercise builds up lactic acid because of the lack of oxygen?

Anaerobic exercise builds up lactic acid because of the lack of oxygen. Examples of anaerobic exercises include sprinting, weightlifting, and high-intensity interval training (HIIT).