In the following circuit the potential difference between points X and Y is
2 V
The current flowing out of battery is 6 / (2+4) = 1 A. Voltage drop across 4 ohm resistance is 4 V. The potential difference, i. e., 6- 4 = 2 will appear between X and Y terminals.