What are the advantages of software testing?

I have just started my graduation. I want to know the advantages of software testing.