Petitioner seeks a writ of mandate to compel the Superior Court of Sacramento County to hear, on the merits, his application under Penal Code section 17, to declare the offense for which he was convicted to be a misdemeanor.
On July 22, 1960, petitioner pleaded guilty to writing checks drawn on insufficient funds in violation of Penal Code *135 section 476a. At that time his conviction was punishable by-imprisonment in the state prison or in the court’s discretion, by imprisonment in the county jail. On August 5, 1960, the Honorable Fred R Pierce, then Judge of the Superior Court of Sacramento County, suspended the pronouncement of judgment and sentence for a period of three years 1 and placed petitioner on probation. 2
On September 30, 1963, Penal Code section 17 was amended to empower a court which grants probation for an offense punishable by imprisonment in the state prison or by imprisonment in the county jail, without pronouncing judgment and/or without imposing sentence, to at that time or at any time “thereafter” declare the offense to be a misdemeanor. 3 On December 19, 1963, approximately three years after his conviction, petitioner, who had apparently satisfactorily completed the terms of his probation, was permitted to withdraw his plea of guilty and the record was expunged pursuant to Penal Code section 1203.4. Accordingly, petitioner was released from all penalties and disabilities resulting from the conviction, with the exception of the right to possess or have in his custody or control any firearm capable of being concealed on his person. 4 No further proceedings were had until June 14,1966, when petitioner, who was then engaged in an occupation requiring the possession of a concealable weapon, moved the respondent court to declare his offense a misdemeanor under Penal Code section 17 as amended in 1963. The court, while *136 indicating for the record that it was inclined to grant the’ petitioner’s motion, denied the motion on the ground that the court lacked the power to apply section 17 retroactively. Petitioner then filed this petition for writ of mandate to compel the court to decide his motion on the merits.
Respondent does not deny that a trial court is under a duty to hear and determine on the merits all matters which are properly before it, and within its jurisdiction.
(Robinson
v.
Superior Court,
Respondent, apparently relying on
People
v.
Banks,
We do not find it necessary to decide whether Penal Code section 3 prohibits a retroactive application of section 17 as amended in 1963, for we do not believe that the facts of this case require such a retroactive application. The petitioner had not yet completed his probationary period when section 17 was amended, and he was still under the jurisdiction of the trial court, not only in relation to his probationary status but also in relation to the character of the offense of which he has been convicted. This is true because even without the 1963 amendment the trial court could have changed the character of his offense by revoking probation and by imposing a jail sentence or a fine.
(People
v.
Lippner,
*137
In this state it is clear that if a penal statute does not characterize the crime as either felony or misdemeanor hut specifies a punishment, the punishment becomes the test. If the statute calls for imprisonment in the state prison the offense is a felony. If the offense calls for imprisonment in the county jail or a fine it is a misdemeanor (Pen. Code, § 17; 1 Witkin, Cal. Crimes (1963) § 39, p. 42.) It is also clear that when a crime is punishable by imprisonment in the state prison, or in the discretion of the court by imprisonment in the county jail, the actual punishment ordered is the test. (See 1 Witkin, Cal. Crimes (1963) § 40, p. 43 and cases cited.) Thus, no problem is presented when sentence is actually imposed, even though the defendant is granted probation. A problem arises, however, in those cases where the offense is alternatively a felony or misdemeanor (depending upon the sentence) and the court suspends the pronouncement of judgment and/or the imposition of sentence and grants probation. It is in this class of cases that the decisions hold that the offense shall be regarded as a felony for all purposes until judgment, and if no judgment is pronounced it remains a felony.
(People
v.
Banks, supra,
We agree with the respondent’s position that when Penal Code section 17 was amended in 1963, petitioner stood convicted of a felony. The conviction was punishable by imprisonment in the state prison or, in the discretion of the court, by imprisonment in the county jail; and up to the time of the amendment no further action had been taken by the court. The fallacy of respondent’s argument, however, is in the assumption that the trial court’s act in suspending imposition of sentence had the effect of causing the crime to retain its status as a felony without possibility of later reclassification. In other words, in arguing its position against a retroactive application of section 17 as amended, respondent seems to assume that prior to the amendment a trial court which suspended imposition of sentence for an offense punishable by imprisonment in the state prison or by imprisonment in the county jail irrevocably fixed the character of the offense and subsequent reclassification was impossible. As we shall see from the cases already cited, this was not the rule.
In Lippner, the defendant had pleaded guilty to three separate and distinct felonies, each punishable by imprisonment *138 in the state prison or, in the court’s discretion, by imprisonment in the county jail. The trial court suspended judgment and imposition of sentence and placed defendant on probation for a period of five years. After defendant had been on probation for approximately four years and had failed to make the court-ordered restitution, the court revoked the probation and sentenced defendant to imprisonment in the county jail. The court held that since the trial court had the power to fix the term of probation for five years, it had acted within its jurisdiction when it pronounced judgment within that period by sentencing defendant to the comity jail, thus making the offense of which defendant was guilty a misdemeanor instead of a felony.
In Rogers at page 400 the court used this significant language: “The necessary inference to be drawn from the language of section 17 of the Penal Code that ‘when a crime, punishable [by imprisonment in the state prison, is also punishable] by fine or imprisonment in a county jail, in the discretion of the court, it shall be deemed a misdemeanor for all purposes after a judgment imposing a punishment other than imprisonment in the state prison,’ is that the offense remains a felony except when the discretion is actually exercised and the prisoner is punished only by a fine or imprisonment in the county jail. ’ ’ 6
In Banks, the court held that a person stands convicted of a felony for all purposes if said person was convicted of an offense punishable by imprisonment in the state prison or by imprisonment in the county jail and if said person’s offense was suspended by the trial court. However, the court also indicated clearly that the character of the offense could be changed to a misdemeanor by the subsequent imposition of a jail sentence or fine. As a matter of fact, in footnote 7 of page 382 of the opinion, the court, citing People v. Lippner, had this to say: “Where imposition of sentence is suspended the court can set the term of probation at the maximum possible felony term, and it can subsequently revoke probation and pronounce a misdemeanor sentence after expiration of the maximum misdemeanor term. ’ ’
From the foregoing case, it is evident that when section 17 was amended in 1963 the trial court already had the power to change the character of the petitioner’s conviction from a felony to a misdemeanor by revoking his probation and impos *139 ing a jail sentence. Consequently, it is also evident that the 1963 amendment simply implemented a power which already existed in the trial court, and that it can apply to the defendant who was still on probation without changing the character of the action taken by the court in 1960 in any sense of the word.
We also agree with respondent that the facts of this case are distinguishable from the facts of
In re Estrada, supra,
In order to ascertain the legislative intent we may look to the purpose of the statute and what it seeks to accomplish. Moreover, a statute should be given a reasonable interpretation which is consistent with the dictates of justice and which avoids absurd results.
(Artukovich
v.
Astendorf,
The remaining question is whether the petitioner is barred from making application under section 17, as amended, since (a) his probationary period has expired and (b) his *140 record was expunged under Penal Code section 1203.4. We think not.
(a) The word “thereafter” in Penal Code section 17 is not followed by a time limit, nor is it by express terms restricted to the probationary period. Moreover, in conferring upon the court the power to declare an offense to be a misdemeanor after it has suspended imposition of judgment or sentence, the Legislature evidently intended to enable the court to reward a convicted defendant who demonstrates by Ms conduct that he is rehabilitated. Thus, the word “thereafter” should not be unduly restricted to the probationary period for there is even greater reason for rewarding a convicted defendant who continues to demonstrate Ms rehabilitation long after Ms probation has expired, when he is no longer under the constant supervision of a probation officer.
(b) The expungement of the record under section 1203.4 is also a reward for good conduct and has never been treated as obliterating the fact that the defendant has been convicted of a felony. As stated by the court in
In re Phillips,
Therefore, a conviction which has been expunged still exists for limited purposes, including, among others, evidentiary use at a later trial
(People
v.
Banks, supra,
It is accordingly ordered that a peremptory writ of mandate issue requiring the Superior Court of the County of Sacramento to hear on the merits petitioner’s motion to declare the offense of which he was convicted on July 22, 1960, to be a misdemeanor.
Conley, P. J., and Stone, J., concurred.
Notes
Thereafter, petitioner’s probation period was extended to August 5, 1964, in order to enable petitioner to complete restitution, a condition of his probation.
The court’s order read as follows:
“It is further ordered that the basis of judgment and sentence be suspended for a period of three (3) years, and
“ It is further ordered that defendant J. M. Meyeb be confined in the Sacramento County Jail for the term of three (3) months, and said period of confinement constitute the first three (3) months of this order of probation, and it is further ordered that defendant J. M. Meyeb make arrangements with the probation officer of Sacramento County to make restitiution. ’ ’
The 1963 amendment reads as follows “Where a court grants probation to a defendant without imposition of sentence upon conviction of a crime punishable in the discretion of the court by imprisonment in the state prison or imprisonment in the county jail, the court may at the time of granting probation, or, on application of defendant or probation officer thereafter, declare the offense to be a misdemeanor. ’ ’
Section 1203.4 was amended September 15, 1961, and the following language was added: “Dismissal of an accusation or information pursuant to this section does not permit a person to own, possess or have in his custody or control any firearm capable of being concealed upon the person or prevent his conviction under Section 12021.’’
Penal Code section 3, referring to the Penal Code, reads: "No part of it is retroactive, unless expressly so declared. ’ ’
This language was quoted with approval in
People
v.
Williams, supra,
