Re: Why is java considered a language for "web" or "internet" programming?




Eric Sosman wrote:
BillJosephson wrote:

Howdy....

I've been learning a bit of java, because I've been led to believe it
is the language to use if you want to make web sites. So far, it just
seems like C or C++, more or less.

What is it about java that makes it good for people making web sites?

Two immediate reasons: portability and safety.

"Write once, run anywhere" somewhat overstates the reality
of Java's portability, but a wide variety of machines can execute
Java bytecodes with reasonably consistent results. When you put
a Java program on your Web site, you don't need to worry (much)
about whether your visitors use Windows, Linux, MacOS, AIX, ...
No matter what they use, your program (mostly) "just runs."

As for safety -- Hey, Bill, you don't know me, but my Web
site sure looks cool, and how's about I just run this chunk of
code on your machine? It, um, it improves your interaction,
yeah, that's it, your interactive experience. Trust me. Because
the JVM on your machine can analyze the incoming bytecode before
executing it, it can prevent that code from doing "dangerous"
things without detection. Sure, flaws have been found in Java's
security, but it remains far safer than downloading and executing
native machine code from an untrusted site.

Those, at least, are the principal advertised benefits. They
are realized incompletely (nothing is perfect), and there are some
drawbacks to offset them (nothing is perfect), but that's the idea.

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxx

In addition the fortuitous timing of Java's introduction coincided with
the explosive growth of the Internet.

.



Relevant Pages

  • Re: HTTP Error 403 forbidden
    ... > When litigation was over between Sun Microsystems and Microsoft, ... > was forced to remove the java code from Internet Explorer. ... Troubleshoot Situations Where You Cannot Connect to Secure Web Sites ... > with the details and any error messages. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: unable to access https sites
    ... Problem Java applications on Web sites accessed through ISA Server are not ... Cause This may be a problem for Web proxies (including ISA Server) ...
    (microsoft.public.isa)
  • Java will not load on "some web sites" Others are OK -HELP!
    ... Internet Explorer 6 with service pack 1 ... I can view java applets for some web sites with no problem. ... However it loaded fine in "Safe Mode" But under normal windows ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • IE ver6 Crashes on specific web sites - possible access problem?
    ... I'm seeing an IE6 crash when I try to access certain web sites. ... consistent i.e. only on certain sites but every time I try to access the same ... A stack trace is dumped to a file and a link is created on my desktop. ... # Java VM: Java HotSpotClient VM ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Java problem
    ... I need some help with installing a plugin for Mozilla 1.4. ... saying "Java not installed" or "Java not enabled". ... a plugin that is required to see all the stuff on these web sites. ... Mozilla saves plugins in /usr/local/mozilla/plugins. ...
    (RedHat)