When AC voltage or AC current is applied across the P-N junction diode, during the positive half cycle the diode is forward biased and allows electric current through it. ... Thus, the P-N junction diode acts like a rectifier by converting the AC current into DC current.