Zend certified PHP/Magento developer

How do they prevent viruses from infecting every computer on the internet?

How is it possible to defend against 0-day exploits? Is it possible that something can infect everything connected to the internet?