Maharaja, or "great king", is literally a title for more significant rulers in India, but after some inflation of titles over time, there is no clear hierarchy between the terms.
Raja රජ means King in Sri Lanka.