Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway?

Java is an Object Oriented Programming (OOP) language created by James Gosling of Sun Microsystems. JavaScript was created by the fine people at Netscape. JavaScript is a distant cousin of Java.

provided by: 
Originally published at Internet.com


They are both similar and quite different depending on how you look at them. First their lineage:

Java is an Object Oriented Programming (OOP) language created by James Gosling of Sun Microsystems. JavaScript was created by the fine people at Netscape. JavaScript is a distant cousin of Java. It is also an OOP language. Many of their programming structures are similar. However, JavaScript contains a much smaller and simpler set of commands than does Java. It is easier for the average weekend warrior to understand.

You may be wondering what OOP means by now. Object Oriented Programming is a relatively new concept, whereas the sum of the parts of a program make up the whole. Think of it this way: you are building a model car. You build the engine first. It can stand alone. It is an engine and everyone can see it's an engine. Next you build the body. It can also stand alone. Finally, you build the interior including the seats, steering wheel, and whatnot. Each, by itself is a object. But it is not a fully functioning car until all the pieces are put together. The sum of the objects (parts) make up the whole.

Continuing with the model car example, when you built the engine, you didn't use any of the parts that would later build the seats (a 350 four-barrel engine with a seat belt sticking out if the piston would look pretty silly). The point is that all the parts that made up the engine were of a certain class of parts. They all went together. Ditto with the body and then the interior...

Read article at Internet.com site
Regional Articles
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Alabama
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Alaska
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Arizona
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Arkansas
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? California
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Colorado
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Connecticut
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? DC
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Delaware
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Florida
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Georgia
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Hawaii
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Idaho
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Illinois
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Indiana
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Iowa
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Kansas
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Kentucky
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Louisiana
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Maine
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Maryland
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Massachusetts
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Michigan
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Minnesota
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Mississippi
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Missouri
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Montana
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Nebraska
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Nevada
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? New Hampshire
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? New Jersey
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? New Mexico
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? New York
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? North Carolina
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? North Dakota
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Ohio
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Oklahoma
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Oregon
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Pennsylvania
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Rhode Island
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? South Carolina
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? South Dakota
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Tennessee
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Texas
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Utah
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Vermont
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Virginia
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Washington
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? West Virginia
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Wisconsin
- Java vs. JavaScript: So... what is the difference between Java and JavaScript anyway? Wyoming
Related Articles
- Fun with Java: Animated Sea Worms
Baldwin wraps up his series of lessons on animation. He has shown you how to use Java to write programs that produce smooth animation of the sprite animation and frame animation varieties. It's time for you to take that knowledge and do something fun with it. And don't forget, Java programming can be fun.
- Data Structures in Java: Part 2, What Is a Collection?
- User Code: Java Applet and JavaScript Communications
- The Essence of OOP Using Java, Objects, and Encapsulation
- Hypewatch: SVG Love
- So, You Want A Java Clock, Huh?
- Fun with Java: Sprite Animation, Part 1
- Access COM Via Java - A Tutorial
- Code Work with Java Annotations
- The Essence of OOP Using Java, Polymorphism and Interfaces, Part 1

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML