The difference is portability of small files to execute a single or multiple purpose without the weight of a full application.
Websites will use Java based applications to attempt to withhold the coding involved and they are not concerned as much with the amount of bandwidth in used. Not that Java uses a heavy bandwidth contstraint, it's just not used for many web based applications through public internet. Java is used mostly for web applications where bandwidth is not an issue but the source code really can't be tampered with and there are extra ways to lock down the application to prevent database modification without that application. You can store encryption keys in the java to lock it down at the applicaiton layer and prevent unwanted communication with a database server.
In Short, Java ... It does have a heavier load for bandwidth because it's a full program... but its design is not ideally for public internet... mostly localized apps for public, internal to corporations... it can be web based.
Javascripts are very lightweight and typically used for modifying the appearance of a website or performing some lightweight database transmissions, but mostly applied for lightweight appearance modifications such as a menu on a website, like Yahoo Answers uses javascripts to make the "Questions" catagory selection appear.
Same with VB to VB script, VB is used to create an application, a fully functional executible application where VB scripts are designed for a specific lightweight transaction on the local or remote system. A lot of admins will automate different job functions by using VB scripts to make a long tedious task, lightweight... 5-10 minute work instead of hours doing the same thing repeditively, like adding 20-40 New Hire employees or something crazy easy like making 20 Servers defrag, or backup, or whatever it may be they want to do. Just by scheduling that script to run.
The full code is for fully functional programming, typically used internal for web base or for localized applications. Like cellphones used locally installed Java applications... other sites use Java to add graphical content.
Java & VB = Heavy weighted
Javascript and VB script = light weighted
This message was edited 2 times. Last update was at 06/22/2010 01:16:39
|