IntelliJ Java IDE
The moose likes Jobs Discussion and the fly likes An interview question.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Careers » Jobs Discussion
Reply Bookmark "An interview question.." Watch "An interview question.." New topic
Author

An interview question..

Murali Koppula
Greenhorn

Joined: May 07, 2002
Posts: 10
Here is a question that I came across in an interview:
What is the difference between a Java applet and a Java Application? - From security point of view.
Java Applet runs inside a Browser and a Java application runs standalon. But from security point, what is the difference?
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6035
Well, in the old days, i.e. JDK 1.0.3, JDK 1.1, the applet had security restrictions on it, such that it couldn't access the local file system, or open ports to other addresses. Then came signed applet's, which would be given permission to do these things. More recent security managers (although I can't remember when exactly the came about) allowed for fine grained access to different security acess points.
--Mark
Murali Koppula
Greenhorn

Joined: May 07, 2002
Posts: 10
Mark,
Thank you for the reply.
I knew Applets have certain restrictions regarding security, but I did not know the details.
Anyways, I probably blew up the interview.
Allen Thomas
Greenhorn

Joined: Jul 02, 2002
Posts: 29
I had the same question! That question comes up often because several my friends were asked that question.
 
IntelliJ Java IDE
 
subject: An interview question..
 
Threads others viewed
Diff between Abstrat class and Interface
applet and application
How to use swings with applet
Security and Applet Security
Maximize the applet viewer windows!
IntelliJ Java IDE