Justin Bieber has been placed on two years probation and ordered to seek anger management.

The 20-year-old star, who pleaded no contest to misdemeanour vandalism charges on Wednesday (09.07.14) for egging his former neighbour's house in Calabasas, California in January, must attend 12 weeks of classes with a minimum of one every week, and must pay the victim $80,900 for causing ''an incredible amount of damage,'' as part of his deal with prosecutors to avoid jail.

The 'Confident' hitmaker, who was not required to attend the Superior Court hearing in Van Nuys, California, was also ordered to perform five days of community service, such as picking up rubbish or graffiti removal, according to CNN.

In a written statement after the hearing, a spokesperson for the star said: ''Justin is glad to get this matter resolved and behind him. He will continue to move forward focusing on his career and his music.''

The victim previously submitted estimates suggesting the Canadian star, who was captured on video during the incident, had caused $20,000 worth of damage to his house because a large portion of the property needed to be re-plastered, but the judge said that cost of the repairs actually exceeded $80,000, adding: ''The house is a dream house.''

Following months of tension between him and his neighbours, Justin sold his mansion in the gated community to Khloé Kardashian, 30, in March, but the singer was also slapped with a restraining order, instructing him to stay 100 yards away from the former neighbour and his family.

Meanwhile, the 'Baby' hitmaker is reportedly still in talks to reach a plea deal with prosecutors in Miami to avoid a trial in relation to his Driving Under the Influence (DUI), resisting arrest and possessing an invalid driver's licence charges stemming from his arrest there in January.