Mumps is a contagious disease that is spread from person to person through contact with respiratory secretions such as saliva from an infected person.
Meaning, as long as you don't get in contact with an infected person's bodily fluids, you won't get infected.