Solved

Java or Javascript

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

839 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