BEIJING-The worldwide surge in demand for artificial intelligence is driving a wave of exports from China, keeping the world's second-largest economy humming despite turmoil from the war in Iran.

China's export growth surged 19.4% in May from a year earlier in dollar terms, according to data released Tuesday by Beijing's General Administration of Customs. The result exceeded the 14.1% year-over-year increase seen in April, and surprised economists who had expected the growth rate to slow.

German Industrial Output Rises For First Time Since November Despite War

Industrial production in Germany rebounded slightly in April, likely helped by recent gains in new orders after firms stockpiled inventory to prepare for sharply higher energy prices caused by the war in the Middle East.

Output rose 0.4% on month, the first rise since November of last year, Germany's statistics agency Destatis said Tuesday, compared with an upwardly revised 0.1% fall in March. A consensus of economists polled by The Wall Street Journal expected zero growth.