Stars are classified based on their spectral characteristics and temperature. The most commonly used system is the Harvard spectral classification, which categorizes stars into types O, B, A, F, G, K, and M, in order of decreasing temperature. Other types of stars include white dwarfs, neutron stars, and black holes, which represent end stages of stellar evolution.