jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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: 18532
    
  40

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)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: sandbox
 
Similar Threads
what is the relationship of sandbox and protect domain?
Delete the J2ME application remotely.
why answer is 2)?
leaky legacy code (c/c++)
WA #2 ..... word association