Objects share data by calling methods on each other.
In Java, objects share data by invoking methods on one another, which allows them to access and manipulate data encapsulated within other objects. For example, a `CartItem` object might call a `getPrice()` method on a `Product` object to retrieve the price for calculations.