Which of the following statements is true?

P waves can travel through space.
P waves cannot travel through water.
P waves can travel through liquids and solids.
P waves cannot travel through rock.