A judge has sentenced Brandon McInerney, now age 17, to 21 years in prison for the 2008 killing of his gay classmate, Larry King.