Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads
Tom's Hardware > Forum > Applications > Internet Applications > What is an applet vs. a script?

What is an applet vs. a script?

Forum Applications : Internet Applications What is an applet vs. a script?

Word :    Username :           
 
- 0 +

Is an applet a set of scripts?

Reply to LAPIII
Register or log in to remove.
- 0 +

http://en.wikipedia.org/wiki/Applet
http://en.wikipedia.org/wiki/Scripting_language

I'm not sure where to draw the connection between the two, but I guess both can be thought of as running inside or on top of something else.

Java applets run inside of web browsers on top of the JVM similar to Java. Though I suppose one could have an applet compiled directly to machine code to be run natively, at which point you wouldn't call it an applet anymore. Scripts (code written in a Scripting Language) are interpreted rather than compiled into machine code (C, C++ etc) or intermediate code (Java bytecode). The line actually thins when it comes to Java, Java applets and JavaScript, nevertheless, while Java and Java applets both end up as bytecode and are run with the help of the JVM, JavaScript is interpreted by the JavaScript Interpreter that eventually executes the code accordingly. As per the wiki page, apparently the first JavaScript interpreter was written in C and as such - no bytecodes or JVM.

I'm afraid to say more so as to not say something that's incorrect but perhaps this will make somewhat of a distinction.

Reply to pavel-
Tom's Hardware > Forum > Applications > Internet Applications > What is an applet vs. a script?
Go to:

There are 2054 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
  • Ask the community now
  • Publish
Ad
Ads
Latest best answer
Blu-Ray playback software recommendations?
By Rusting In Peace, 1 day ago:

My advice to you would to be avoid getting blu ray on PC it's totally annoying because of...

Best offers
They won a badge
Join us in greeting them
Top experts