File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "sandbox" Watch "sandbox" New topic


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

Joined: Sep 28, 2004
Posts: 20380

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.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: sandbox
jQuery in Action, 3rd edition