Sagot :
Comparison:
Both China and Japan stayed away from meddling with the Western nations in the start of their colonization era, with Japan even undergoing "Isolationism"
Contrasting:
China didn't manage to catch up with the technology of the Western powers and was invaded as part of the Imperialist Movement in the late colonization era, while Japan managed to invade and modernize to catch up with the Western power's industries
Hope it helps a bit