Defendants in criminal cases (other than infractions) have the right to have a jury of their peers decide their guilt or innocence. Therefore, before trial, defendants need to decide whether to have a jury trial (where the jury decides if the defendant is guilty or not) or a court trial (where the judge decides). Usually, defendants choose to have a jury trial because they want a jury of their peers to hear the evidence and decide their guilt. But sometimes there may be circumstances where a defense attorney will recommend a court trial without a jury.
Everyone accused of a crime is legally presumed to be innocent until they are convicted, either by being proved guilty at a trial or by pleading guilty before trial. This means that it is the prosecutor who has to convince the jury that the defendant is guilty and must provide proof of guilt beyond a reasonable doubt. The defendant has the right to remain silent and that silence cannot be used against him or her.