Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

why answer is 2)?  RSS feed

 
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!