This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes sandbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "sandbox" Watch "sandbox" New topic
Author

sandbox

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
What is sandbox ? I read online that it is an area in memory where code can be tested freely to check whether it can harm or not. So how can an applet in java code do any harm ?
Please explain.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20133
    
  46

In security terms, a sandbox is an "area" (which may be more than just memory), that an application can't leave. Furthermore, the application is free to do whatever it likes in the sandbox, as there isn't any damage that it can do that is pernament.

In the case of an Applet, if it were allowed to leave the sandbox, some damage that it can cause is delete files, steal personal information, install viruses, etc. However, since it is confined to the sandbox, it can't do any of that.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sandbox
 
It's not a secret anymore!