Solved

Java or Javascript

Posted on 1998-07-21
3
219 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

785 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