Chinese president, for his part, urged both countries to restrain from activities that would raise geopolitical temperature.
The surge in stocks came even as industrial production entered the negative territory in June.
The 30-share Sensex after opening higher at 31,299.52 advanced to the day's high of 31,526.40 and settled up 235.44 points, or 0.75 per cent at 31,449.03. The gauge had lost 1,111.82 points in the last five days.
Stock exchanges will remain closed tomorrow on account of Independence Day.