Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

What is Java?


Upon looking around on my PC at documents and programs that I apparently downloaded, one of the ways that popped up to surf the
net is “Java Sun”. I have no idea where that came from. I use explorer and Firefox. Is this “Java Sun” dangerous? Any idea how I
got it on my PC?

One clarification, it’s “Java”, produced by a company by the name of “Sun” Microsystems.

It’s not dangerous, in and of itself, but like any programming language or internet tool it can of course be used for good or

Become a Patron of Ask Leo! and go ad-free!

Second clarification: “Java” and “Javascript” are unrelated.

I’d call it a poor naming choice of “Microsoft-ean” proportions. Microsoft is known for it’s confusing names such as “Outlook”
and “Outlook Express” (which have no relationship to each other), or the current mess that is “Hotmail”, “Windows Live Mail”,
“Windows Live Hotmail” and “Windows Mail” (three different things with four different names).

The fact that Java and Javascript are unrelated and yet have similar names is unfortunate.

Java is a programming language. All that really means to most folks is simply that when you run an application, the developer
who wrote it might have been using Java to create the program.

“… by virtue of having done some surfing on the web you may have downloaded and installed Java.”

Programs written in Java are transformed or “compiled” into an intermediate form that when run is interpreted by what’s called a
virtual machine” or VM. That intermediate form is not machine or platform specific – meaning that as long as there’s a Java
virtual machine available for the platform you’re running on, a program written in Java may be able to run on it. In fact, one of
Java’s mottos is “Write Once, Run Anywhere”. (Of course programmers certainly can still write Java programs that work on only
specific platforms.) Java Virtual Machines are available for most popular platforms including Windows, Mac and Linux.

Because of its ability to be platform in ependent, Java is an occasionally popular language for web-based applications or
“applets”. When you visit a web site that uses a Java applet, you may be prompted to download and install the Java VM, if you don’t
already have it, and then the web application can run.

Visiting a web site that uses a Java applet is probably how you ended up with Java on your machine.

One of the items that occasionally surprises people is that Sun’s implementation of the Java VM will automatically update it self,
much like Windows itself. Suddenly a Sun Java icon might appear in your taskbar’s notification area telling you that a new version
is available, or that a new version has been downloaded and installed.

The bottom line is simply that by virtue of having done some surfing on the web you may have downloaded and installed Java.
That’s typical, and nothing to be worried about. Similarly, if you periodically see update notifications for the Java VM, that too
is to be expected.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

5 comments on “What is Java?”

  1. Java usually puts an icon in your ‘control panel’, mine looks like a coffee cup, this is where you can change the settings including disabling automatice updates.

  2. I need to know, as Anita did if I can delete the earlier versions of Java off my system, and just keep the most recent update. Thank you.

  3. I tried to uninstall java but it wasn’t included in the list so I searched for any java files and deleted them…now I’m having more trouble than before…can you tell me what to do? I haven’t emptied my recycle file yet…should I restore all the java files?


Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.