What are you trying to access?If you are trying to access some data from the first one, can you passit along?B b = new B(withSomeDataFromAForAConstructor);orB b = new B();b.runSomeMethodInB(withSomeDataFromA);or a combination of both.