Wikipedia: “Japanese is though to have been brought to Japan by settlers coming from either the mainland or nearby Pacific islands (or both) sometime in the early- to mid-1st century BC, replacing the language of the original Jōmon inhabitants (likely an ancestor of the modern Ainu language).”
Yeah, if you study Japanese AND Ainu before coming to Japan you’ll be feared