Question for Japan programmers

I'm a computer science student, but I'm studying Japanese. I want to move to Japan when I graduate. Would a company hire a foreign programmer with three years of experience?

And can I get a remote job from my home country (Brazil) for a Japanese company? I don't think so about the second question, because it doesn't make sense for a company to hire a junior from the other side of the world if the market is likely to have recent Japanese graduates ready to work.

After I graduate, I want to apply for a student visa (a six-month exchange program) and try to find a job. It might be easier since I'll be in Japan.

by Disastrous-Noise3896