Diode is an electric device permitting only one way current flow.