This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes basic question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "basic question" Watch "basic question" New topic
Author

basic question

Sumukh Deshpande
Ranch Hand

Joined: Feb 17, 2008
Posts: 87

I have heard people telling me that the Java aplications cant be affected by malicious code(Virus).

What feature of Java does prevent that?
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
Yes , sandbox plays the role here.

Explanation :
Java applications, which are hosted on a local machine and run like any other program, and Java applets, which are hosted on web sites and run when a web site visitor arrives at a particular page. Java applets are treated differently from Java applications. Because they are untrusted code, the virtual machine runs them in a "sandbox" that restricts what they are allowed to do. In general, the sandbox is designed to prevent a Java applet from making any changes to the data on the user's computer. The vulnerability at issue here involves the sandboxing function, and so affects only Java applets
Sumukh Deshpande
Ranch Hand

Joined: Feb 17, 2008
Posts: 87

thanks a lot "pdommara Kumar"
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: basic question
 
Similar Threads
zipping as self extracting exe
class
WA #2 ..... word association
J2EE
c++ or Java--your suggestions please