  We give necessary and sufficient conditions on the graph of a right-angled
Artin group that determine whether the group is subgroup separable or not.
Moreover, we investigate the profinite topology of the direct product of two
free groups. We show that the profinite topology of the above group is strongly
connected with the profinite topology of the free group of rank two.
