Analogy in combination of batteries in series and pn junction diode circuit to find potential difference

semiconductors

Can I use the analogy of combination of two batteries to get the potential difference between two points in case a pn junction diode is used in the case of other battery? In doing so what is the basic mistake in doing that ? I think about this a lot but could not get.

enter image description here

Best Answer

Kirchoffs loop law applies, subtract the 0.6V from the PN junction from the 2V battery ad you'll get 1.4V between A and B