No person shall be eligible to apply for examination unless he is more than eighteen years of age at the date of application and has been a resident of the municipality for at least one year preceding immediately his application, unless no resident applicants are available.
53 P.S. § 53265