Which is an example of judicial review?

• A judge compares a law to the Constitution and declares a law unconstitutional and of no effect.

• A court examines a government action and determines whether it violates the rights guaranteed by the Constitution.