Page 1 of 2 12 LastLast
Results 1 to 20 of 31

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 ...

  1. #1
    Senior Member akash's Avatar
    Join Date
    Oct 2008
    Location
    Heaven (Earth)
    Posts
    500

    Default 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.

  2. #2
    Super Moderator wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default 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.

  3. #3
    Super Moderator wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default 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.

  4. #4
    Member
    Join Date
    Nov 2008
    Posts
    35

    Default 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

  5. #5
    Senior Member
    Join Date
    May 2009
    Posts
    417

    Default Re: difference between Java and JavaScript

    Java and Javascript are not related at all, one of the common misconceptions

  6. #6
    Senior Member msn90's Avatar
    Join Date
    May 2009
    Location
    india
    Posts
    146

    Default 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

  7. #7
    Senior Member
    Join Date
    Mar 2011
    Posts
    110

    Default 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.

  8. #8
    Junior Member
    Join Date
    Mar 2011
    Posts
    5

    Default 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.

  9. #9
    Member
    Join Date
    Mar 2011
    Posts
    73

    Default 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.

  10. #10
    Senior Member
    Join Date
    Aug 2010
    Posts
    104

    Default 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.

  11. #11
    Member
    Join Date
    Mar 2011
    Posts
    32

    Default Re: difference between Java and JavaScript

    java is a programing language while java script is a scripting language and is browser based.

  12. #12
    Senior Member
    Join Date
    Apr 2011
    Posts
    128

    Default 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..........


  13. #13
    Senior Member
    Join Date
    May 2011
    Posts
    387

    Default Re: difference between Java and JavaScript

    It is a interesting sharing.......

  14. #14
    Member
    Join Date
    May 2011
    Posts
    89

    Default 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.



  15. #15
    Senior Member
    Join Date
    May 2011
    Posts
    171

    Default 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)

  16. #16
    Junior Member
    Join Date
    Jun 2011
    Posts
    29

    Default 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.

  17. #17
    Junior Member
    Join Date
    Jun 2011
    Posts
    5

    Default 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.

  18. #18
    Member
    Join Date
    Jul 2010
    Posts
    30

    Default 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.

  19. #19
    Senior Member
    Join Date
    May 2011
    Posts
    171

    Default 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.

  20. #20
    Senior Member
    Join Date
    Apr 2011
    Posts
    810

    Default Re: difference between Java and JavaScript

    Java is an object oriented programming language while Javascript is a scripting language..

Page 1 of 2 12 LastLast