(a) The direction of flow of electrons is from A to B (i.e., from a low potential to a high potential)
(b) The direction of flow of current when both the conductors are joined by a metal wire is from B to A. (i.e., from a high potential to a low potential)