If you work in Japan, and your visa is A, you might change your job later which requires a different visa, but there could be an unexpected trap.
Once you quit the job which requires visa A, that visa could be revoked 3 months after resignation unless you keep working.
In other words, if you apply for a job which requires visa B, you must be hired and get the visa within 3 months after resignation.
Here is what you must heed:
Even if you apply for a new job and visa B in the case above, you might choose not to be hired. Then you might apply for another job which also requires visa B, but you cannot get the visa B by the previous application. You must withdraw the previous application once and reapply for visa B with documents provided by your new prospective employer. Some people think they can legally get visa B to work at another company by filing a statement of reason since the application form has already been submitted to work at a different company, but this does not work.
Visa A could be revoked unless you find a new job within 3 months in the worst case. You should leave Japan unless you are hired by a new company and get visa B if 3 months have passed.
Please make sure to withdraw your application if you choose not to work at a certain company and quickly reapply even if the same visa is required for the next company.