Is the way each of the three major groups of rocks forms is different ?

Yes,