Which one is better: Exercising in a group or exercising alone?

Which one is better: Exercising in group or exercising alone?