Appellant Cato claims that the trial court committed error in the admission of evidence disclosing the commission of another offense, and in the giving of instructions relative to the defense of alibi, and also the degree of the offense and the imposition of the particular sentence in the case. It is true the rule is well established that a defendant in a criminal cause can be tried for no other offense than that charged and it is not competent for the prosecution to prove the commission of independent crimes by the defendant, the evidence of which has no tendency to prove some material fact in connection with the particular crime charged. However, the rule has many exceptions. Where the evidence is otherwise competent it cannot be excluded merely because, in producing such evidence, there is shown the commission of other offenses or wrongful acts. (8 Cal. Jur. 60-73.) Thus where a person denies knowing another it is competent to show that the person knew the other, even though such a showing tends to bring out the commission of an independent offense. (People v. Morales, 143 Cal. 550 [77 Pac. 470].) So, also, where a defendant denies that he had a particular instrument used in the commission of an offense it is competent to show by other evidence that such instrument was possessed by the defendant at a previous time, even though the testimony tends to show independent wrongful acts. (People v. Madison, 3 Cal. (2d) 668 [46 Pac. (2d) 159].) This is the precise situation here presented. Defendants had denied knowing each other and had likewise denied having in their possession, or ever having seen, a sawed-off shotgun. It was competent, therefore, for the prosecution to show that on a previous occasion appellant was seen with a shotgun in his hands, even though such evidence tended to reveal the commission of another wrongful act.
Appellant complains of an instruction given by the court, relative to an alibi as a defense, in which the jury were told that they should scrutinize the testimony offered in support thereof in order to satisfy themselves that a fabri-. cated defense was not being imposed upon them. This cautionary instruction has received full consideration and approval in People v. Arnold, 199 Cal. 471 [250 Pac. 168], where the cases on the subject are extensively reviewed. Appellant was not prejudiced thereby.