If any public employee, heretofore having served at least 7 years as a borough solicitor, at least 3 years as an assistant city solicitor, at least 2 years as an assistant county prosecutor, at least 5 years as a juvenile and domestic relations court judge, and having attained the age of 64 years or more, has died, having left a widow surviving him, such widow, upon application therefor, shall receive for the remainder of her life a widow's pension in an amount equal to 25% of the annual compensation said employee received in the last year of his employment.
N.J.S. § 43:9-36