In a recent interview, I was asked if two programs written in different languages can access each others variables. I know it’s possible to have a middleman like a common text document storing the shared variables, but is it possible for say, Java to say “give me the value of varName from that C++ program that’s currently running”?