When converting two objects using multiple generics in java, do the places of these objects in memory change?