What does it mean when the brake ligh comes on in a Toyota carolla?

Handbrake needs adjusting or brake pads need changing but i'd look at the handbrake first.