Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

verify these ans

 
Osgar ali
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone verify these ans for me:
Source is brainbench

To what level can an applet's permission be configured under JDK 1.2?
1) All applets run completely restricted in a sandbox environment
2) Applets run restricted in a sandbox by default, but they can be signed which allows them full system access.
3) Applets run restricted in a sandbox by default, but they can be signed, which allows a user to grant certain groups of permissions (write to disk, open network connection, for example) as requested by the applet.
4) Applets run restricted in a sandbox by default, but they can be signed, which allows them to be granted specific permissions (write to file X, open connection to host Y, for example) specified by a policy file.
5) Applets run restricted in a sandbox by default, but they can be signed, which allows the applet the permissions contained in the digital certificate.
Ans 4
How can you cause a class to receive notification when it is activated from serialized data?
1) Implement the readObject() method.
2) Implement a security manager to check for Serialization events.
3) Declare a SerializationListener class
4) Add a constructor that takes a Serializable argument.
5) Register a listener using Java.rmi.Activatable.

Ans 1
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you thought about these questions yourself? What do you think the answers are? Please show some effort - JavaRanch is not a homework service.

When you post a question, please use a meaningful subject line instead of "verify these ans".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic