Sometimes, both
the electrodes dip in the same electrolyte solution and in such cases we
do not require a salt bridge At each electrode-electrolyte interface there is a tendency of metal
ions from the solution to deposit on the metal electrode trying to make
it positively charged At the same time, metal atoms of the electrode
have a tendency to go into the solution as ions and leave behind the
electrons at the electrode trying to make it negatively charged At
equilibrium, there is a separation of charges and depending on the
tendencies of the two opposing reactions, the electrode may be positively
or negatively charged with  respect to the solution