June 30 (Reuters) - Foreign investors continued selling Japanese stocks in the week ending June 24 as investors remained concerned about the risks of a global recession amid aggressive rate hikes by the Federal Reserve to rein back inflation.

Foreigners sold Japanese stocks worth a net 316.22 billion yen($2.32 billion), after selling 1.72 trillion yen in the previous week, data from exchanges showed.

They disposed of 165.68 billion yen in cash equities and withdrew 150.54 billion yen out of derivatives.

Japanese stocks recovered from the previous week's fall last week, with cyclical and tech stocks posting big gains. Start-up investor SoftBank Group surged 9.1%, while Japan Airlines and rival ANA Holdings climbed 6.9% and 4.15% respectively.

The Nikkei share average gained 2.04% and the Topix index progressed 1.68% last week, after the previous week's steep losses.

Meanwhile, cross-border investors sold Japanese bonds worth a net 965.8 billion yen, marking the third straight weekly outflows, finance ministry data showed.

Domestic investors also drew 1.64 trillion yen out of overseas bonds, posting their biggest weekly net selling in about 3-1/2 months, but they were buyers in foreign equities, to the turn 51.4 billion yen. ($1 = 136.3000 yen)

(Reporting by Gaurav Dogra and Patturaja Murugaboopathy in Bengaluru; Editing by Kim Coghill)