Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

why answer is 2)?

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic