In order for electrons to leave their lower shells to higher shells, they need energy i.e voltage. Electrons also move from high concentration to lower concentration.
If we take a single piece of N-type (which is not joined with P-type piece) and connect one side of N-type with negative...