Method #2 is for a group of components at the same time,whereas the first method is for one component only