A jury may be summoned to try the truth of the charges, if they are denied, or the whole matter may be submitted to the court for its determination.