Question 8 How does applet printing in 1.2 differ over 1.1 1) Applet printing is not possible in 1.1 but possible in 1.2 2) Applet printing is permissionable in 1.2 but not in 1.1 3) Applet printing is controlled by the the .java.policy file in 1.1 4) There is no difference
The answer is 2 because of the extreme overhaul the Java Security went through from 1.1 to 1.2. In 1.1, Applets ran in a sandbox and couldn't be granted additional permissions (like printing) even if you wanted to. In 1.2, Applets still run in the sandbox environment but you can decide to give additional permissions. Hence the answer is 2.
May be I'm wrong, but I think in JDK 1.1 a signed applet enjoys unlimited access like a local application provided the correspeonding public key is trusted in the executing environment. So the only difference between applet's access to the system in 1.1 and 1.2 is that in 1.2 the 'security principle of least privilege' is upheld by the introduction of policy file. As such, none of the 4 options provided is correct.
posted 17 years ago
I read a book. It said that applet can run outside sandbox without limitation for JDK1.1. with JDK1.2, it can run outside sandbox but with limitation. with JDK1.0, applet can only run in the sandbox