Witnesses in criminal cases do not have to appear in court. It should be discussed in two cases: in the first case, in judicial practice, prosecution witnesses generally do not need to testify in court. In the second case, the defense witness should testify in court. A defense lawyer may apply for a witness who can be used as defense evidence to testify in court and prove the relevant facts of the case. Of course, the appearance of defense witnesses should be recognized by the court.
Legal objectivity:
Article 61 of the Criminal Procedure Law: The testimony of a witness must be cross-examined and verified by the public prosecutor, the victim, the defendant and the defender in court before it can be used as the basis for finalizing the case. Article 63 People's courts, people's procuratorates and public security organs shall ensure the safety of witnesses and their near relatives. Threatening, insulting, beating or retaliating against witnesses and their close relatives, which constitutes a crime, shall be investigated for criminal responsibility according to law; If it is not serious enough for criminal punishment, it shall be given administrative punishment for public security according to law.