The evolution of a star depends on the initial conditions existing during its formation and on the course of the main processes changing its chemical composition and mass. If it is assumed that stars are formed from diffuse matter, the initial conditions are restricted to three factors: 1) mass, 2) chemical composition, 3) angular momentum. The mass of the star can be determined by the conditions of gravitational instability of diffuse matter, which, according to our hypothesis, consisted of solid primary bodies, similar to cometary nuclei, and a gas and dust nebula formed by them. The upper limit for the possible mass of a star is evidently determined by its angular momentum, which cannot exceed a certain critical value.