In a p−n junction diode not connected to any circuit,
(1) the potential is the same everywhere
(2) the p-type side is at a higher potential than the n-type side
(3) there is an electric field at the junction directed from the n-type side to the p-type side
(4) there is an electric field at the junction directed from the p-type side to the n-type side