In the case of 예 (ja, yes), this is one of those universal onomatopeic words: in vast numbers of languages, the expression "yes" is some variant of [je]. The Chinese version is, OTOH, from a different source, namely "(it) is", which incidentally is a common source of word for "true". 안 and IE ne are only minimally similar. The more-universal onomatopeic forms of negation are pa, ma, ka.