declaratory judgments — Legal Definition, Examples & Cases