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.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

why answer is 2)?

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
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
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic