heat will flow from your hand (the warmer object) to the cup (the colder object), and your hands will start to feel cold because their losing heat energy
The vertical columns (groups) of the periodic table are arranged such that all its elements have the same number of valence electrons. All elements within a certain group thus share similar properties.