The judge may require any person called as a witness who voted at such election to answer touching his qualification as a voter, and if the court, from his examination, or otherwise, is satisfied that he was not a qualified voter in the election district where he voted, he may compel him to disclose for whom he voted.
N.J.S. § 19:29-7