17. Period of service.

(a) if he belongs to any of the classes specified in clauses (a) to (f) of sub-section (1) of section 11, until he has completed his forty-second year;
(b) if he belongs to any of the classes specified in clauses (g) and (h) of the said sub-section, until he has completed his fifty-fifth year.