At issue is the constitutionality of an ordinance 1 of the city of Revere banning self-service gasoline stations in that city. The plaintiff Shell Oil Company (Shell) sought a declaration that “the proposed operation of Plaintiff’s self-service gasoline station is not hazardous or injurious to the public,” and that the ordinance is “invalid” under the equal protection clause 2 of the Fourteenth Amendment to the United States Constitution and under arts. 1, 7, and 10 of the Massachusetts Declaration of Rights. The city’s answer denies that the ordinance is unconstitutional and asserts that the ordinance was passed to protect the public from hazards which exist in operating self-service stations. The action was referred to a master, who found self-service stations to be generally as safe as conventional stations, and safer than conventional stations as regards the incidence of fire. The master concluded that by exercising its police power to ban self-service stations while allowing conventional stations to operate, the city unjustly discriminated against self-service stations in violation of the Fourteenth Amendment to the United States Constitution.
Shell moved for confirmation of the master’s report and for judgment in its favor. The city then filed alternative *684 motions to strike portions of the report or to recommit the matter to the master, and to confirm the master’s report less the stricken material, and enter judgment in its favor.
Without ruling on the motions, the judge below filed a memorandum of decision rejecting the city’s attack on the subsidiary findings of the master, and adopting the conclusion of the master that self-service stations are as safe if not safer than conventional full-service stations with respect to the threat of fire. The judge concluded, however, that the city council’s possible objectives in enacting the ordinance could not fairly be limited to the goal of protecting the public from safety hazards connected with self-service operation, and that the plaintiff had not met its onerous burden of disproving the existence of any possible rational basis for the ordinance. Therefore, the judge ruled that the ordinance was a constitutionally valid exercise of the city’s police power, and judgment was entered accordingly. 3 Shell appealed. We granted Shell’s application for direct appellate review. We uphold the constitutionality of the ordinance and conclude that the declaration should be modified to state that the ordinance bears a reasonable relation to permissible objects of legislation, including the protection of public health or safety.
At the outset, there is a question concerning the propriety of judicial review in this case. General Laws, c. 231A, § 8, requires that “[i]f a question of constitutionality is involved in any proceeding under this chapter, the attorney general shall also be notified of the proceeding and be entitled to be heard.” Such notice and opportunity to be heard are “conditions precedent to the entry of a declaratory decree.”
Court St. Parking Co.
v.
Boston,
Moreover, the determination of constitutionality
5
by the judge is consistent with the views expressed by the Attorney General in cases raising similar challenges to this type of economic legislation. See, e.g.,
Purity Supreme, Inc.
v.
Attorney Gen.,
In essence, Shell argues that the ordinance should be judged only in light of the goal of public safety. 6 Although Shell acknowledges the validity of this goal, it argues that the evidence before the master amply supported his conclusion that self-service stations are as safe as full-service stations, and that the ordinance, therefore, bears no rational relationship to the promotion of public safety, health or general welfare. Shell also argues that the city is enforcing the ordinance in a discriminatory fashion, and requests a
*686 declaration that the ordinance be declared “an invalid and unconstitutional exercise of the municipal police power.”
Our task in considering constitutional challenges to legislation affecting economic issues is “both limited and clear: we must determine whether [the ordinance] represents a valid exercise of the police power. And we must do so by assessing the rationality of the connection between the legislative means adopted in [the ordinance] and those permissible public ends the [legislative body] may plausibly be said to have been pursuing.”
Blue Hills Cemetery, Inc.
v.
Board of Registration in Embalming & Funeral Directing,
*687 A statute or ordinance is not rendered unconstitutional merely because the evidence of record suggests that the “ultimate efficacy” of achieving the statutory purpose is in question, 8 or that the means to achieve the statutory end is rough, illogical or not the best available, 9 or that the means stated in the statute is not perfectly consistent with the desired result. 10 The success of the Legislature’s choice need not be guaranteed.
Our deference to legislative judgments reflects neither an abdication of nor unwillingness to perform the judicial role; but rather a recognition of the separation of powers and the “undesirability of the judiciary substituting its notions of correct policy for that of a popularly elected Legislature.”
Zayre Corp.
v.
Attorney Gen.,
This respect for the legislative process means that it is not the province of the court to sit and weigh conflicting evidence supporting or opposing a legislative enactment.
Clark
v.
Paul Gray, Inc.,
Once the Legislature has drawn a classification, “neither the finding of a court arrived at by weighing the evidence, nor the verdict of a jury can be substituted for it.”
United States
v.
Carotene Prods. Co.,
Shell does not challenge the connection between the prohibition of consumer dispensing of gasoline, an admittedly dangerous substance, and the goal of public safety; instead Shell disputes the need for a regulation banning self-service
*689
stations, given the relative safety records of those stations and conventional ones. That issue, however, was for the city council. It alone had the authority to determine that hazards such as customer disregard of the rules regarding smoking, turning off engines and placing gasoline in dangerous containers are likely to occur with more frequency at self-service stations than at full-service stations. The city could decide that to permit only employees of gasoline stations to dispense gasoline would reduce the likelihood of accidents. Whether the ordinance was a response to actual instances of customer misuse or an attempt to forestall such problems, it cannot be said that the regulation in question bears no rational connection to the legislative purpose. See
Jewel Cos.
v.
Burlington,
Further, the city’s possible purposes in enacting the ordinance cannot be restricted to considerations of public safety. See
Marcoux
v.
Attorney Gen.,
Shell also claims that by banning self-service stations, while allowing the operation of conventional stations, the ordinance arbitrarily discriminates against self-service gasoline stations in violation of the equal protection guaranties of the State and Federal Constitutions. Under an equal protection analysis, we must determine “whether the classification involved rationally ‘furthers a legitimate State interest.’”
Johnson
v.
Martignetti,
Shell asserts that self-service stations are a business distinct from that of a conventional, full-service gasoline station, and, therefore, the ordinance unreasonably prevents it from engaging in an otherwise lawful business. We do not agree. This same argument was advanced in
Hi-Lo Oil Co.
v.
Crowley,
Shell also argues that, since three self-service stations are already operating in Revere, the application of the ordinance to its station is invalid. We disagree. It is settled that a “State [is] not bound to deal alike with all . . . classes, or to strike at all evils at the same time or in the same way.”
Semlar
v.
Oregon St. Bd. of Dental Examiners,
Finally, a judge, not the judge who declared the statute constitutional, referred this matter to a master on a motion of the plaintiff. We believe that it is not appropriate for a judge to refer cases to a master if the underlying controversy is of widespread public interest involving the official acts of elected officials. Confidence in the judgments of the judiciary requires that in the absence of unusual circumstances the courts should hear and decide constitutional issues involving legislative action. In such cases there “is an impelling reason for a trial before an experienced judge,”
Bartlett-Collins Co.
v.
Surinam Navigation Co.,
*692 The judgment of the Superior Court is modified to declare that the ordinance is rationally related to permissible legislative objectives including public safety; and, as modified, it is affirmed.
So ordered.
Notes
Chapter 7, Section 7-25, of the Revised Ordinances of the City of Revere was amended, in pertinent part, by the addition of the following: “SEC. 1-. . . [N]o license for a self-service gasoline station shall be granted which would allow the pumping of gasoline for retail sale without an attendant present to hold the gas nozzle while gasoline is being pumped into the tank.”
During the proceedings, the parties stipulated that the “sole issue in this lawsuit is whether or not the ordinance . . . prohibiting self-service gasoline stations violates the due process [or] equal protection guarantees of the Federal and State Constitutions and whether such ordinance is a proper exercise of the municipal police power.”
We treat the defendant’s motions to strike and to recommit as having been impliedly denied. See, e.g.,
Ryan
v.
Stavros,
The ordinance at issue is similar to the one challenged in
Milton
v.
Attorney Gen.,
We need not decide what result would have been appropriate had the judge declared the ordinance unconstitutional.
Although Shell seeks to limit the issue to public safety, “the validity of the legislation [is] to be tested in the first place by inquiring whether it [bears] a reasonable relation to any permissible object of legislation.”
Marcoux
v.
Attorney Gen.,
We have noted that “[t]he Constitution of a State may guard more jealously against the exercise of the State’s police power.” See
Coffee-Rich, Inc.
v.
Commissioner of Pub. Health,
Exxon Corp.
v.
Governor of Md.,
Dandridge
v.
Williams,
Williamson
v.
Lee Optical of Okla., Inc.,
The city has not challenged the scope of the hearing below, and we express no views on whether the judge could have granted summary judgment, see
Commonwealth
v.
Leis,
While the record in the instant case tails to disclose any fire incident attributable to self-service stations, we note that a similar ordinance, upheld against constitutional attack, had been enacted after a flash fire occurred as a result of a customer’s smoking while he was dispensing gasoline.
Hi-Lo Oil Co.
v.
Crowley,
The plaintiff relies on our language in
Sturges
v.
Chilmark,
