(CNBC) -- The Dow Jones Industrial Average gained 124 points, or 0.5%, while the S&P 500 was up 0.6%. The tech-heavy Nasdaq Composite gained 0.9%. The major averages pared some of their gains towards the end of the session, after Texas Gov. Greg Abbott told reporters the coronavirus is spreading at an unacceptable rate.
Apple shares jumped more than 2% and hit a record high after the company made a slew of announcement at its annual WorldWide Developers Conference. The tech giant unveiled the latest version of iOS, its mobile operating system. Apple also said its new Mac computers will no longer use Intel chips.
Microsoft climbed more than 2% to lead the Dow higher. Amazon advanced 1.1%. Netflix gained 2.6%. Facebook eked out a small gain.
Advertisement - story continues below