answersLogoWhite

0

There's an old saying among programmers that Java is to JavaScript as ham is to hamster. The one you choose to learn first is more a preferential choice than one of the easier way to learn.

Java is not related to JavaScript.

Java is an object-oriented, compiled computer language used to build everything from televisions to advanced scientific equipment to operating systems. Java has a very large set of prebuilt functions, and is similar to C#.

JavaScript is also object-oriented, but the kind of object orientation is different than most every other object oriented language. JavaScript allows you to manipulate the elements of an HTML document, as well as do some basic server-side stuff. JavaScript has a much smaller area of concern than Java. JavaScript remains plaintext, and is not compiled. It also has no access outside the browser (if they haven't made a mistake in the browser.)

I would suggest you learn JavaScript if you have an ambition to work with the web. Java also has a footprint on the internet, but it's mostly server-side and much smaller.

If you want to go into Software Engineering, and are looking for a good language to start dealing with the complexities therein, than Java is a good choice. It's robust, widely available, and has a vibrant community.

Learning both wouldn't hurt you either, but it's important to understand that they are not related in any way, except for their names, and an ancient connection to Netscape.

User Avatar

Wiki User

13y ago

What else can I help you with?