This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
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.
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
Win
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss