If we have a instance variable like int i=10 and for that class we have two objects if we change the value of i using first object then how can it notify to second object that the value of 'i' is changed....Without using Threads concept....just using normal objects
introduce a method which takes the same object as an argument. now test the argument object's instance field and perform a operation..something like below: