U.S. stocks closed higher Thursday ahead of major tech company earnings.
The Dow Jones industrial average and the S&P 500 struggled to hold opening gains, while the tech-heavy Nasdaq composite closed at a record high.
Comcast, PayPal and Amazon.com were among the greatest contributors to gains in the Nasdaq.
Ahead of the open, NBCUniversal
Information technology was among the top S&P 500 performers, while energy was the worst, dropping more than 1 percent as oil prices fell about 2 percent on oversupply concerns.
U.S. crude oil futures for June delivery hit their lowest since March 29 and settled at $48.97 a barrel, tumbling 1.3 percent.
While the summer driving season has historically helped drive oil prices higher, domestic inventory levels "remain elevated by historical standards," Lindsey Bell, investment strategist at CFRA, said in a Thursday note to clients.
"We remain hard pressed to get excited
"It's policy grabbing the headlines but the earnings still drive the market and the matter of the fact is, the earnings have been pretty good," said JJ Kinahan, chief strategist at TD Ameritrade.