The defendant appears before a judge, usually within 48 hours of an arrest. The judge reviews charges, advises on legal rights, and sets conditions for release, which may include bail or pretrial detention.