What do companies like Apple, Google, and Facebook do to prevent hacking?What security do they use? How do they secure there servers?

Good question. These mega giants (Google, Apple, Facebook, Amazon, Microsoft, etc) aren't heard in the media for being rendered to cyberattacks. Their multi-billion dollar businesses rely on their tech innovations, so if any of that information is ever leaked, we're talking about losing hundreds of millions of dollars.