If after the hearing of any cause the court shall determine that the plaintiff or counterclaimant is entitled to a judgment of nullity of marriage or nullity of a civil union or a judgment for divorce from the bonds of matrimony or judgment for dissolution of a civil union, a final judgment shall be entered.
Appeals shall be taken only from the final judgment.
N.J.S. § 2A:34-18