Solved

Java or Javascript

Posted on 1998-07-21
3
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example issues from command prompt 10 65
Facing this issue for maven proxy setting 2 27
Eclipse with various Java releases 7 51
Java program running SQL query 5 50
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
In this post we will learn different types of Android Layout and some basics of an Android App.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

726 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