During what years were the basics of Hindu literature created ?
Both Java and Sumatra were subject to considerable cultural influence from the Indian subcontinent during the first and second millennia of the Common Era .