The Criminal Code deals with adults who have broken the law. It makes going to jail the consequence for breaking the law, allows publication of criminals names, creates a criminal record for most offenders. The YCJA deals with 12-17 year olds who break the law. It outlines consequences for young offenders, and doesn't allow adult sentences for youth 12-14 year olds. It also helps protect the privacy of young offenders, and also allows young offenders to avoid a criminal record.