237. When a person is charged with one offence, he can be convicted of another.

239 - What persons may be charged jointly.
(a) persons accused of the same offence committed in the course of the same transaction;
(b) persons accused of an offence and persons accused of abetment, or of an attempt to commit such offence;
(c) persons accused of more than one offence of the same kind, within the meaning of Section 234 committed by them jointly within the period of twelve months;
(d) persons accused of different offences committed in the course of the same transaction;
(e) persons accused of an offence which includes theft, extortion, or criminal misappropriation, and persons accused of receiving or retaining, or assisting in the disposal or concealment of, property possession of which is alleged to have been transferred by any such offence committed by the first named persons, or of abetment of or attempting to commit any such last named offence;
(f) persons accused of offences under Sections 411 and 414 of the India Penal Code or either of those sections in respect of stolen property the possession of which has been transferred by one offence; and
(g) persons accused of any offence under Chapter XII of the Indian Penal Code relating to counterfeit coin, and persons accused of any other offence under the said Chapter relating to the same coin, or of abetment of or attempting to commit any such offence;