How+do+you+know+how+hot+it+is?

How do you know how hot it is?
 * To tell how old a star, you need to work out it's mass. Without this, you can't work out the temperature of a star. **