Section 4. The court shall thereupon fix a date for hearing on said petition not less than fifteen days after the filing thereof, and said petition shall be served upon each and all of the persons named therein as respondents at least ten days prior to the date fixed for hearing. At any time prior to the hearing, any respondent or other person in interest may appear and answer, setting up in his answer his interest in the proceedings, and answering the averments of the petition. Any party in interest may, prior to the time of the hearing, demand in writing a jury trial on any material issue or issues of fact raised by the pleadings, whereupon the said issue or issues shall be determined by a jury trial as in other cases.