His sentence will be reviewed in 13 years
The boy, who can’t be named because he’s under 18, admitted stabbing the 20-year-old at a house party in Cork city last January.
At his sentence hearing earlier this month, the court heard he stabbed him with a large kitchen knife because he wrongly thought his friend was in danger.
Before passing sentence today, the judge described what he did as a "vicious attack carried out with determination and intent on a defenceless young man".
The boy will be 18 next month, and would have been tried and sentenced as an adult if he had been convicted after his 18th birthday.