From Hindu perspective, the term "candi" itself is believed was derived from Candika, one of the manifestations of the goddess Durga as the goddess of death [REF].
Historians suggest that the temples of ancient Java were also used to store the ashes of cremated deceased kings or royalty.