Section 5. In all proceedings under this act, the political subdivision shall give at least ten days' notice of the filing of its petition to the Attorney General who may become a party thereto and shall give notice to the public of the proposed date of the hearing, by publication, once a week for three successive weeks in the official legal journal of the county and in a newspaper of general circulation in the municipality, if there be one, or, if not, in a newspaper of general circulation in the county. Any resident of the political subdivision or any group or organization or residents of the political subdivision shall have the right to file a protest and, in the discretion of the court, shall be entitled to be heard in person or by counsel or to intervene in such action and to be a party thereto.