Consider the junction diode as ideal. The value of current flowing through A B is
10-1 A
10-3 A
0 A
10-2 A
Here, the p-n junction diode is forward biased, hence it offers zero resistance.
∴IAB=VA-VBRAB=4 V-(-6 V)1kΩ=101000 A=10-2 A