A P N Junction Diode Is Used As?

A P N Junction Diode Is Used As?