Both Hinduism and Buddhism, which are both Indian religions and share a common historical background and whose membership may even overlap at times, were widely propagated in the Maritime Southeast Asia.
[citation needed] Hinduism and the Sanskrit language through which it was transmitted, became highly prestigious and the dominant religion in Java.
[citation needed] In the sixth and seventh centuries many maritime kingdoms arose in Sumatra and Java which controlled the waters in the Straits of Malacca and flourished with the increasing sea trade between China and India and beyond.
[4] Although Java was gradually converted to Islam during the 15th century and afterwards, substantial elements of Hindu (and pre-Hindu) customs and beliefs persist among ordinary Javanese.
[citation needed] Hinduism or Hindu-animist fusion have been preserved by a number of Javanese communities, many of which claim descent from Majapahit warriors and princes.