The court granted leave to resolve the issue of whether the competency statutes of the criminal code, specifically N.J.S.A. 2C:4-4 to -6, apply to juveniles. We conclude the statutes do apply to juveniles, and that N.J.S.A. 2C:4-5(a)(2) requires the Department of Human Services, or its successor, to provide or arrange for examination of a juvenile for fitness to proceed as DHS would for an adult, with such accommodation for the juvenile's youth as is necessary and appropriate.