This doctrine was devised by the Supreme Court to resolve the problem of the validity of laws which are declared as unconstitutional.