Stocks rose on Thursday, led by shares of technology companies, as comments from Chinese officials about trade negotiations with the United States lifted investor sentiment that has been dented by growing worries of a recession.

China’s commerce ministry said both sides were discussing the next round of talks scheduled in September and hoped United States officials could cancel the planned additional tariffs to avoid an escalation.

President Trump said in a Fox News radio interview that trade talks were scheduled for Thursday “at a different level,” but did not provide additional details. Tariff-sensitive tech stocks jumped nearly 2 percent, bolstered by gains in Apple and Microsoft.