Solved

Java or Javascript

Posted on 1998-07-21
3
216 Views
Last Modified: 2013-12-16
Well I'am a bit confuse, this maybe a dumb question and since I would like to study Java I would like to know what is the difference of Java from Java script?
Thank you.
0
Comment
Question by:lmr
  • 2
3 Comments
 

Author Comment

by:lmr
ID: 1227484
Edited text of question
0
 

Accepted Solution

by:
Gamestor earned 100 total points
ID: 1227485
Hi Imr,
The only similarities between Java and JavaScript, that I know of, are the syntax, both are object oriented and open- and cross-platform.  Other than that, there are many differences between the two.
First of all, JavaScript doesn't require compilation prior to execution since its text-based code runs directly within the browser.  Java does require compilation.  This means that JavaScript's code and HTML's code can be included in one HTML file, whereas Java's code resides in a class file and can only be included in the HTML file using <APPLET ..../APPLET>.
Secondly,  Java has classes and supports class inheritance while JavaScript only has built-in sets of objects that can't be classified as classes.  JavaScript's object references are checked at runtime, whereas Java's object references are checked at compile time.
Third, Java requires variable's types to be declared, whereas JavaScript doesn't.
Fourth, Java is designed for programmers to develop applets and stand alone applications, whereas JavaScript is designed for webpage authors to dynamically control the interaction of their pages.
In general, if you are only interested in creating awesome webpages, JavaScript is one of the best ways to go.  Other than that, I think you should start with Java.  After you have mastered you Java skills, JavaScript shouldn't be hard for you to learn at all.  Just keep in mind that JavaScript was originally designed to create the link between Java and HTML.

I hope this will help you a little bit.
Gamestor
0
 

Author Comment

by:lmr
ID: 1227486
Thanks agan,You're indeed a big help
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now