Section 302 in The Code of Criminal Procedure
Title: Permission to conduct prosecution
(1) Any Magistrate inquiring into or trying a case may permit the prosecution to be conducted by any person other than a police officer below the rank of inspector; but no person, other than the Advocate-General or Government Advocate or a Public Prosecutor or Assistant Public Prosecutor, shall be entitled to do so without such permission:
Provided that no police officer shall be permitted to conduct the prosecution if he has taken part in the investigation into the offence with respect to which the accused is being prosecuted.
(2) Any person conducting the prosecution may do so personally or by a pleader.
Title: Right of person against whom proceedings are instituted to be defended
Any person accused of an offence before a Criminal Court, or against whom proceedings are instituted under this Code, may of right be defended by a pleader of his choice.
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.