title: how objects interacts with each other in java using methods?
body: <p>I am learning java and can do pretty much coding myself without any issues. But I have been always reading in the books - In java, objects interact with each other by invoking methods of other objects? </p>
  
  <p>I am unsure if I got that clearly. Example is like, a <code>Robot</code> class which has methods like <code>moveForward()</code>, <code>comeToBase()</code>,<code>increaseSpeed()</code> etc. Now if there are two robot objects, then how will they interact with each other to avoid clash? I can understand very well that each robot object can invoke its own methods independently and run independently but how does the interaction between the object happens? Can someone explain based on the above example?</p>