How is it decided who the next king will be? Is it simply the oldest son?

Do most people kill some of their princes to get the "right king"?

I just had a 50 year old prince become king and he is unmarried.