A Melbourne teenager who fatally stabbed an Indian student in a park last year has been jailed for 13 years.

The boy, who cannot be identified because of his age, was 15 and a half when he stabbed Indian accounting graduate Nitin Garg in Cruikshank Park in Yarraville last January.

Nitin Garg. Credit:AFP

In sentencing the boy this morning Justice Paul Coghlan told the Supreme Court that the sentencing task had been a difficult one and the crime had been spontaneous.

"The community abhors the use of knives because of the consequences such as this," Justice Coghlan said.