How do large software companies such as Facebook and Twitter find software bugs in their products?

I want to know how do large software companies such as Facebook and Twitter find software bugs in their products. Can anyone please help me out.