my dog learned polymorphism*
The moose likes Java in General and the fly likes verify these ans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "verify these ans" Watch "verify these ans" New topic
Author

verify these ans

Osgar ali
Greenhorn

Joined: Jan 24, 2009
Posts: 22
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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".


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: verify these ans