This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 19235
    
  41

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)
 
Don't get me started about those stupid light bulbs.
 
subject: sandbox