If California were a country, its economy would rank fifth internationally, behind only the U.S., China, Germany, and Japan.