The mass of a star can be determined by studying what?

The mass of a star can be determined by studying what?