difference between Java and JavaScript
This is a discussion on difference between Java and JavaScript within the Programming forums, part of the Web Designing & Development category; The JavaScript language resembles Java, but without Java's static typing and strong type checking. JavaScript supports most of Java's expression ...
- 04-23-2009, 06:39 AM #1
difference between Java and JavaScript
The JavaScript language resembles Java, but without Java's static typing and strong type checking. JavaScript supports most of Java's expression syntax and basic control flow constructs. In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a run-time system based on a small number of data types representing numeric, Boolean, and string values. JavaScript has a simple instance-based object model that still provides significant capabilities.
JavaScript also supports functions, again without any special declarative requirements. Functions can be properties of objects, executing as loosely typed methods.
JavaScript complements Java by exposing useful properties of Java applets to script authors. JavaScript statements can get and set exposed properties to query the state or alter the performance of an applet or plug-in.
Java is an extension language designed, in particular, for fast execution and type safety. Type safety is reflected by being unable to cast a Java int into an object reference or to get at private memory by corrupting Java bytecodes.
Java programs consist exclusively of classes and their methods. Java's requirements for declaring classes, writing methods, and ensuring type safety make programming more complex than JavaScript authoring. Java's inheritance and strong typing also tend to require tightly coupled object hierarchies.
In contrast, JavaScript descends in spirit from a line of smaller, dynamically typed languages like HyperTalk and dBASE. These scripting languages offer programming tools to a much wider audience because of their easier syntax, specialized built-in functionality, and minimal requirements for object creation.
- 04-23-2009, 10:49 PM #2
Re: difference between Java and JavaScript
The history of it all was that Java existed and the language JavaScript was created and it was called JavaScript because Java at the time was getting a lot of media attention and it was a marketing stunt to get some of the attention directed JavaScript's way.
Neither Java or JavaScript are related languages despite the similarities in the name!I.T. Construct
Web Hosting and Webmaster support/work is available.
Email: admin@itconstruct.com.au
Visit http://www.itconstruct.com.au
Super Moderator of Webicy Forum.
- 04-23-2009, 10:50 PM #3
Re: difference between Java and JavaScript
Akash good article but the use of some proper paragraph breaks would help the readability of your post as well as using dot points sometimes.
I.T. Construct
Web Hosting and Webmaster support/work is available.
Email: admin@itconstruct.com.au
Visit http://www.itconstruct.com.au
Super Moderator of Webicy Forum.
- 05-08-2009, 07:05 AM #4
Member
- Join Date
- Nov 2008
- Posts
- 35
Re: difference between Java and JavaScript
i rather like to use java although they are really different.. akash where did you copy that post?? huh..
Need assistance in Registering business in the Philippines?
company formation philippines
(+632)856-7517
- 05-16-2009, 01:56 AM #5
Senior Member
- Join Date
- May 2009
- Posts
- 417
Re: difference between Java and JavaScript
Java and Javascript are not related at all, one of the common misconceptions
- 05-19-2009, 10:16 AM #6
Re: difference between Java and JavaScript
Neither Java or JavaScript are related languages despite the similarities in the name,
opera.com/support/kb/view/101/
dannyg.com/ref/javavsjavascript.html
these sites are very helpful to you
- 03-24-2011, 12:06 PM #7
Senior Member
- Join Date
- Mar 2011
- Posts
- 110
Re: difference between Java and JavaScript
In simple words Java is an entire programming language developed by Sun Micro systems, while JavaScript is a scripting language.
- 03-25-2011, 05:24 AM #8
Junior Member
- Join Date
- Mar 2011
- Posts
- 5
Re: difference between Java and JavaScript
Nice share. I think after reading this thread, many persons have cleared their answers about difference between Java and JavaScript. If someone is newbie to the IT Field than they must have to read this post at least ones.
- 04-27-2011, 10:59 AM #9
Member
- Join Date
- Mar 2011
- Posts
- 73
Re: difference between Java and JavaScript
Hello..
Java is an object oriented programming language that is capable of running on multiple operating systems with the use of an interpreter while JavaScript is a scripting language,The main use of JavaScript is to provide a level of interactivity to web pages that are not achievable with simple HTML.
- 05-05-2011, 05:14 PM #10
Senior Member
- Join Date
- Aug 2010
- Posts
- 104
Re: difference between Java and JavaScript
Hello,
As per my knowledge Java and JavaScript are programming languages. Java is an object oriented programming language whereas JavaScript is more of a scripting language. Both can be used to make web pages more interactive.
- 05-12-2011, 02:54 AM #11
Member
- Join Date
- Mar 2011
- Posts
- 32
Re: difference between Java and JavaScript
java is a programing language while java script is a scripting language and is browser based.
- 05-14-2011, 06:08 AM #12
Senior Member
- Join Date
- Apr 2011
- Posts
- 128
Re: difference between Java and JavaScript
Java and JavaScript are programming languages. Java is an object oriented programming language whereas JavaScript is more of a scripting language. Both can be used to make web pages more interactive. However, Java is also used to develop server side applications and standalone programming..........
- 05-18-2011, 11:06 AM #13
Senior Member
- Join Date
- May 2011
- Posts
- 387
- 05-25-2011, 07:29 AM #14
Member
- Join Date
- May 2011
- Posts
- 89
Re: difference between Java and JavaScript
Java is an object oriented programming language..
JavaScript is more of a scripting language.JavaScript is also a programming language which is used to make web pages more dynamic as well as interactive.
- 05-25-2011, 03:13 PM #15
Senior Member
- Join Date
- May 2011
- Posts
- 171
Re: difference between Java and JavaScript
Javascript runs on client side before passing the data to server, and Java is a backend programming which only runs at servers whenever an html page invokes the logic (according to web development point of view)
- 06-15-2011, 07:39 PM #16
Junior Member
- Join Date
- Jun 2011
- Posts
- 29
Re: difference between Java and JavaScript
The JavaScript accent resembles Java, but after Java's changeless accounting and able blazon checking. JavaScript supports a lot of of Java's announcement syntax and basal ascendancy breeze constructs. In adverse to Java's compile-time arrangement of classes congenital by declarations.
- 06-17-2011, 11:10 AM #17
Junior Member
- Join Date
- Jun 2011
- Posts
- 5
Re: difference between Java and JavaScript
Java is programming language for desktop application. Javascript is web application language and it is used on server side. This both application having concept of the OOPS.
- 06-22-2011, 06:11 AM #18
Member
- Join Date
- Jul 2010
- Posts
- 30
Re: difference between Java and JavaScript
JavaScript is used to make the web pages more interactive. However, Java can be used not only to make interactive web pages but can also be used to create server side applications and standalone programming.
- 06-22-2011, 10:25 AM #19
Senior Member
- Join Date
- May 2011
- Posts
- 171
Re: difference between Java and JavaScript
Yes, they are but the main difference in between them is Java runs on server side so business logic is implemented there, and JavaScript runs on client site on browser so general validations are done on these sides.
- 06-25-2011, 03:22 PM #20
Senior Member
- Join Date
- Apr 2011
- Posts
- 810
Re: difference between Java and JavaScript
Java is an object oriented programming language while Javascript is a scripting language..



LinkBack URL
About LinkBacks




The Dream Team For Every Start Up
"A startup is a company designed to grow fast and the only thing that is essential to such company is its growth. When a company is growing...
Yesterday, 02:00 PM