Any person or persons claiming title to land adjoining tide or submerged land, herein called “adjoining land,” under a patent issued by the United States of America or the State of California, may bring suit against the State, or against the State with others, in accordance with law in any court of competent jurisdiction of the State, to fix and determine the boundary between said adjoining land and the tide or submerged land which it adjoins, and may prosecute the action to final judgment. Service of summons on the State in any such suit shall be made in the manner as provided in Section 6462 of this code. If judgment is given against the State in any such action or proceeding, no costs shall be recovered from the State thereunder.