The declaration may be affirmative or negative in form and effect and has the force and effect of a final judgment or decree.