What is the difference between a German student visa and a German student residence permit?

What is the difference between a German student visa and a German student residence permit?