PPT Slide
Both materials are electrically neutral
When sandwiched together, the excess electrons in the n-layer flow into the p-layer.
The holes vacated flow to the n-layer
This electron-hole flow allow the semiconductors to act as a battery at the surface where they are joined (the p/n junction)