Section 304 in The Code of Criminal Procedure
Title: Legal aid to accused at State expense in certain cases
(1) Where, in a trial before the Court of Session, the accused is not represented by a pleader, and where it appears to the Court that the accused has not sufficient means to engage a pleader, the Court shall assign a pleader for his defence at the expense of the State.
(2) The High Court may, with the previous approval of the State Government, make rules providing for--
(a) the mode of selecting pleaders for defence under sub-section (1);
(b) the facilities to be allowed to such pleaders by the Courts;
(c) the fees payable to such pleaders by the Government, and generally, for carrying out the purposes of sub-section (1).
(3) The State Government may, by notification, direct that, as from such date as may be specified in the notification, the provisions of sub-sections (1) and (2) shall apply in relation to any class of trials before other Courts in the State as they apply in relation to trials before Courts of Session
Title: Procedure when corporation or registered society is an accused
(1) In this section, "corporation" means an incorporated company or other body corporate, and includes a society registered under the Societies Registration Act, 1860 (21 of 1860).
(2) Where a corporation is the accused person or one of the accused persons in an inquiry or trial, it may appoint a representative for the purpose of the inquiry or trial and such appointment need not be under the seal of the corporation.
(3) Where a representative of a corporation appears, any requirement of this Code that anything shall be done in the presence of the accused or shall be read or stated or explained to the accused, shall be construed as a requirement that thing shall be done in the presence of the representative or read or stated or explained to the representative, and any requirement that the accused shall be examined shall be construed as a requirement that the representative shall be examined.
(4) Where a representative of a corporation does not appear, any such requirement as is referred to in subsection (3) shall not apply.
(5) Where a statement in writing purporting to be signed by the managing director of the corporation or by any person (by whatever name called) having, or being one of the persons having the management of the affairs of the corporation to the effect that the person named in the statement has been appointed as the representative of the corporation for the purposes of this section, is filed, the Court shall, unless the contrary is proved, presume that such person has been so appointed.
(6) If a question arises as to whether any person, appearing as the representative of a corporation in an inquiry or trial before a Court is or is not such representative, the question shall be determined by the Court.
Title: Tender of pardon to accomplice
(1) With a view to obtaining the evidence of any person supposed to have been directly or indirectly concerned in or privy to an offence to which this section applies, the Chief Judicial Magistrate or a Metropolitan Magistrate at any stage of the investigation or inquiry into, or the trial of, the offence, and the Magistrate of the first class inquiring into or trying the offence, at any stage of the inquiry or trial, may tender a pardon to such person on condition of his making a full and true disclosure of the whole of the circumstances within his knowledge relative to the offence and to every other person concerned, whether as principal or abettor, in the commission thereof.
(2) This section applies to--
(a) any offence triable exclusively by the Court of Session or by the Court of a Special Judge appointed under the Criminal Law Amendment Act, 1952 (46 of 1952);
(b) any offence punishable with imprisonment which may extend to seven years or with a more severe sentence.
(3) Every Magistrate who tenders a pardon under sub-section (1) shall record--
(a) his reasons for so doing;
(b) whether the tender was or was not accepted by the person to whom it was made, and shall, on application made by the accused, furnish him with a copy of such record free of cost.
(4) Every person accepting a tender of pardon made under sub-section (1)--
(a) shall be examined as a witness in the Court of the Magistrate taking cognizance of the offence and in the subsequent trial, if any;
(b) shall, unless he is already on bail, be detained in custody until the termination of the trial.
(5) Where a person has accepted a tender of pardon made under sub-section (1) and has been examined under sub-section (4), the Magistrate taking cognizance of the offence shall, without making any further inquiry in the case--
(a) commit it for trial--
(i) to the Court of Session if the offence is triable exclusively by that Court or if the Magistrate taking cognizance is the Chief Judicial Magistrate;
(ii) to a Court of Special Judge appointed under the Criminal Law Amendment Act, 1952 (46 of 1952), if the offence is triable exclusively by that Court;
(b) in any other case, make over the case to the Chief Judicial Magistrate who shall try the case himself.
Title: Power to direct tender of pardon
At any time after commitment of a case but before judgment is passed, the Court to which the commitment is made may, with a view to obtaining at the trial the evidence of any person supposed to have been directly or indirectly concerned in, or privy to, any such offence, tender a pardon on the same condition to such person.
Title: Trial of person not complying with conditions of pardon
(1) Where, in regard to a person who has accepted a tender of pardon made under section 306 or section 307, the Public Prosecutor certifies that in his opinion such person has, either by wilfully concealing anything essential or by giving false evidence, not complied with the condition on which the tender was made, such person may be tried for the offence in respect of which the pardon was so tendered or for any other offence of which he appears to have been guilty in connection with the same matter, and also for the offence of giving false evidence:
Provided that such person shall not be tried jointly with any of the other accused:
Provided further that such person shall not be tried for the offence of giving false evidence except with the sanction of the High Court, and nothing contained in section 195 or section 340 shall apply to that offence.
(2) Any statement made by such person accepting the tender of pardon and recorded by a Magistrate under section 164 or by a Court under sub-section (4) of section 306 may be given in evidence against him at such trial.
(3) At such trial, the accused shall be entitled to plead that he has complied with the condition upon which such tender was made; in which case it shall be for the prosecution to prove that the condition has not been complied with.
(4) At such trial, the Court shall--
(a) if it is a Court of Session, before the charge is read out and explained to the accused;
(b) if it is the Court of a Magistrate, before the evidence of the witnesses for the prosecution is taken,
ask the accused whether he pleads that he has complied with the conditions on which the tender of pardon was made.
(5) If the accused does so plead, the Court shall record the plea and proceed with the trial and it shall, before passing judgment in the case, find whether or not the accused has complied with the conditions of the pardon, and, if it finds that he has so complied, it shall, notwithstanding anything contained in this Code, pass judgment of acquittal.