In a p-n junction without any external voltage
p and n both are at same potential
high potential at n-side and low potential at p-side
high potential at p-side and low potential at n-side
low potential at n-side and zero potential at p-side
Electron moves from n-side to p-side and hole move from p-side to n-side to create a barrier potential.