No building or structure hereafter constructed shall be used or occupied in whole or in part until a certificate of occupancy shall have been issued by the Township construction Official. No building or structure hereafter altered, in whole or in part, shall be used or occupied until such a certificate has been issued, except that any use or occupancy in an already existing building or structure that was not discontinued during its alteration, may be continued in the preexisting structure for 30 days after completion of the alteration without the issuance of a certificate of occupancy. A certificate of occupancy shall be issued by the Township Construction Official when all of the work covered by a construction permit shall have been completed in accordance with the issued permit, the New Jersey Uniform Construction Code, and other applicable laws and ordinances. On request of a holder of a construction permit, the Township Construction Official may issue a temporary certificate of occupancy for a building or structure, or part thereof, before the entire work covered by the construction permit has been completed, if the part or parts of the building or structure to be covered by the certificate may be occupied prior to completion of all work in accordance with the permit, the New Jersey Uniform Construction Code and other applicable laws and ordinances, without endangering the health and safety of the occupants or users.