Yes Anudeep,
JRE 7.17 and below should be able to help you here. Explicitly if you want to handle it from code, you can use a code bit to prompt the processor to use a specific version of JRE.
This way there would not be any need to uninstall later version.
Following link can help you further on this. Using a <Object> tag.
http://www.oracle.com/technetwork/java/javase/index-141751.html
Using the <applet>
tag to select a particular JRE version for an individual applet:
<applet codebase="http://foo.bar.com/" code="MyApplet" ...>
<param name="java_version" value="1.5.0_11"></applet>
<applet codebase="http://foo.bar.com/" code="MyApplet" ...>
<param name="java_version" value="1.5*"></applet>
<applet codebase="http://foo.bar.com/" code="MyApplet" ...>
<param name="java_version" value="1.5+"></applet>
Hope this helps.
Regards,
Swaroop