(1)Nothing contained in Section 562 of the Code of Criminal Procedure, 1898 (5 of 1898), or in the Probation of Offenders Act, 1958 (20 of 1958), shall apply to a person convicted of an offence under this Act unless that person is under eighteen years of age.