How to change jdk version in linux

When we use android studio or NetBeans in a parallel system that time we need two JDK or Java version for run application. For Instance:- ...