Expectations for economic growth in Germany improved in June but remained well below the levels seen before the Ukraine war, data from the ZEW economic research institute showed Tuesday.

The index of economic expectations increased to minus 28.0 in June from minus 34.3 in May. Economists polled by The Wall Street Journal had projected the index climbing to minus 26.5.

“Financial market experts are less pessimistic about the economy”, said Achim Wambach, president of the ZEW institute. “However, the economy is still exposed to numerous risks, such as the effects of the sanctions against Russia, the unclear pandemic situation in China and the gradual change of course in monetary policy,” Wambach said.

Views about the current economic situation in Germany also improved in June. The index gauging current conditions rose to minus 27.6 in June from minus 36.5 in May, above economists’ expectations of minus 31.0.

Write to Xavier Fontdegloria at xavier.fontdegloria@wsj.com